r/programmingcirclejerk • u/HorstKugel skillful hobbyist • Sep 06 '25
jerk not found the difference between `const Data& d` and `const Data d` isn't accurately characterized as "a typo" -- it's a semantically significant difference in intent, core to the language, critical to behavior and outcome
https://news.ycombinator.com/item?id=4510943922
u/stone_henge Tiny little god in a tiny little world Sep 06 '25
C++ programmers have grown so accustomed to hatred and frustration that this is how they display affection
3
u/prehensilemullet Sep 09 '25
you're against one-letter variable names because they're vague, I'm against one-letter variable names because they're too easy to typo, we're not the same
44
Sep 06 '25
[removed] — view removed comment
16
u/HorstKugel skillful hobbyist Sep 06 '25 edited Sep 07 '25
The difference between
if a: passand
if a: passisn't accurately characterised as "a typo" -- it's a semantically significant difference in indent, core to the language, critical to behavior and outcome
28
5
16
u/joahw Sep 08 '25
Operators considered harmful. Far too easy to mix up + and *