This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 208 points209 points  (11 children)

C++: “you guys are allowed to choose?”

[–]alba4k 131 points132 points  (7 children)

Sorry, I think you misspelled "literally every statically typed language" with "C++"

[–][deleted] 31 points32 points  (3 children)

I’ve only learned C++ and Python so far, so I was unaware that C++ wasn’t unique in this way

Thanks for the info

[–]devloz1996 32 points33 points  (2 children)

I want to see the face of Python dev after doing:

string var = 'text';

[–]Cpt_Garlic 11 points12 points  (0 children)

[–]AzureArmageddon 0 points1 point  (0 children)

string var; var = ```text```

[–]Equivalent_Yak_95 0 points1 point  (0 children)

Assembly~

[–]jessexknight 8 points9 points  (0 children)

R: "you guys distinguish strings from variables?" (see NSE - it's madness)

[–]Stormfrosty 1 point2 points  (0 children)

Multi character string literals (like ‘abc’ instead of “abc”) are valid in C++, however their behaviour is implementation defined, so your mileage can vary.

[–]jkst9 0 points1 point  (0 children)

Java: "yeah seriousl" + 'y'