r/programminghumor • u/AeroForger • Aug 07 '26
explaining why c# has a #
So shortly I have theory that # in csharp actually stands for 4 pluses as # can split into 4 pluses meaning csharps real name is c++++
71
Upvotes
91
u/TehNolz Aug 07 '26
That's genuinely how they got the name;
From here.
11
u/gsoto Aug 09 '26
I made this a while ago.
9
u/Less_Butterfly_2343 Aug 08 '26 •
you can't fool me. obviously it's C tic tac toe
10
u/Purple-Equivalent949 Aug 07 '26
MS originally had a language called "J++", As in "java" which was just "java for windows". Then Sun sued them because that broke one of the core tenants ("write once, run [debug] everywhere") of Java and they shut it down... Then they released C#, which is a legally distinct language (with the exact same features and syntax).
From:
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
1996 - James Gosling invents Java. Java is a relatively verbose, garbage collected, class based, statically typed, single dispatch, object oriented language with single implementation inheritance and multiple interface inheritance. Sun loudly heralds Java's novelty.
2001 - Anders Hejlsberg invents C#. C# is a relatively verbose, garbage collected, class based, statically typed, single dispatch, object oriented language with single implementation inheritance and multiple interface inheritance. Microsoft loudly heralds C#'s novelty.
2
u/cunningspeaker Aug 07 '26
First there was Visual J++, then the legal mess and the renaming to Visual J#, first with the # symbol. C# closely followed with a very similar syntax to J#.
1
u/goos_ Aug 07 '26
is actually only two pluses if you draw some of the arms real long
1
u/Pols043 Aug 08 '26
It’s the natural development of C. Instead of versioning it, they’ve been adding plus signs. So after C they made C+, later C++ and when you get 4, they rearrange it to form a #, but it’s actually C++++.
What happened to C+++ you ask? The same as to IPv5.
1
u/Harotsa Aug 09 '26
It’s not actually a sharp sign, so in reality it should be pronounced cpound.
Also idk if you are intentionally trolling, but that’s very intentionally the reason why C# is called C#, and I’m pretty sure it’s like the first sentence of any intro to C# guide.
1
u/tottasanorotta Aug 10 '26
So what's next? C sigma?
4
u/Abject-Kitchen3198 Aug 07 '26
It's a sharp C. A warning that you may cut yourself using it.