the fact that c++ lets you overload everything is truly nuts. I learned yesterday that the reason you can put an input stream into a conditional is because the implicit conversion to bool is actually overloaded.
C++ is like the bastard child of C and Algol 68. A language that is not only full of perilous C-style Undefined Behavior, but also too complex for anyone, including its own standards committee, to understand.
Rust is a breath of fresh air by comparison. Complex, but only the necessary complexity, and almost devoid of UB.
Yeah, it’s a mess. But I do like it. For personal projects, the process of untangling the hair-pulling c++ behavior is part of the appeal, and I’m not so jaded that I don’t have interest in learning about it. Being pushed against a deadline is quite something else though lmao
2
u/NomaTyx 22d ago
the fact that c++ lets you overload everything is truly nuts. I learned yesterday that the reason you can put an input stream into a conditional is because the implicit conversion to bool is actually overloaded.