this post was submitted on 09 Jun 2024
229 points (80.1% liked)

> Greentext

7437 readers
8 users here now

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] dank953@lemmy.world 6 points 3 months ago (3 children)

a sharp symbol is ++ stacked on top of ++ So C ++ ++ becomes C#

Phonetically, It is C sharp because it sounds cooler than C hash or C pound.

[–] Hawke@lemmy.world 15 points 3 months ago

Also because in music, C# is a half-note higher than C.

[–] Varyk@sh.itjust.works 3 points 3 months ago (2 children)

Rad. Thanks! What do the pluses denote in a programming language? What's the difference between c+, c++ and c sharp?

[–] lili_thana@lemmy.blahaj.zone 16 points 3 months ago (2 children)

++ is the increment operator in C, which increases a value by 1. C++ was intended to be an improvement on C, and so it's saying that C++ is C incremented. C# is C++ ++ or C++ incremented. It's just a bunch of programmer jokes. There isn't a C+ afaik.

[–] Varyk@sh.itjust.works 4 points 3 months ago

Oh, haha, got it. Thanks

[–] mozz@mbin.grits.dev 1 points 3 months ago* (last edited 3 months ago)

"We did make C better, but what you're getting back from us isn't the better thing."

🙂

[–] orivar@lemmy.dbzer0.com 8 points 3 months ago (1 children)

There is no c+. The reason is that ++ means "increment by 1" in c itself (and many other languages).

[–] Varyk@sh.itjust.works 3 points 3 months ago
[–] hawgietonight@lemmy.world 1 points 3 months ago (2 children)

It's funny that in spanish only the "c" is translated.

We say "ce sharp"

[–] FlorianSimon@sh.itjust.works 1 points 3 months ago

Same in French

[–] callyral@pawb.social 1 points 2 months ago

Same in Brazilian Portuguese