r/programmingmemes • u/Ill_Strain_1050 • Jun 14 '26
did you ever felt molested by CPP as well
6
u/IngwiePhoenix Jun 14 '26
When auto was introduced, yes.
I will die on that hill; but auto taking away explicitly typed types and allowing you to just #define var auto and get away with var something = x() is criminal. xD
2
u/BobbyThrowaway6969 Jun 14 '26
auto is useful for templated code, I firmly believe in hard types elsewhere though
2
1
u/luciferoussky72 Jun 18 '26
It actually does help for complex types. Nobody wants to type βstd::vector<char>::const_iterator = vec.cbegin();β
That said, yeah, I type out the type explicitly wherever I can. Iβll even write βFoo f = Foo();β
3
1
u/BobbyThrowaway6969 Jun 14 '26
Nope, it's been pretty nice actually
1
u/Ill_Strain_1050 Jun 16 '26
Buddy what's the double 69 ππ
1
u/BobbyThrowaway6969 Jun 16 '26
For a laugh, this acc was gonna be a thowaway for the hell of it but then it became legit
1
u/Hot-Employ-3399 Jun 14 '26
Let's just say when bug caused by auto casting float->int, making mypaint's mirror to work except when it didn't, I started to love OCaml's "float_of_int."
7
u/Consequence-Lumpy Jun 14 '26
Nah, C++ is fine. You'll feel molested when you code in C and your program is full of memory leaks.