4 ms·
> It clashes with nearly every point on the Zen of Python I'd argue that C++ is more pythonic than Python. For instance: > Explicit is better than implicit.
by jcelerier 9y ago
> It clashes with nearly every point on the Zen of Python
I'd argue that C++ is more pythonic than Python. For instance:
> Explicit is better than implicit.
Since when is dynamic typing more explicit than static typing ?
> Errors should never pass silently.
Well guess what, with C++ they don't even pass compilation.
- mjburgess 9y agoSince dynamic typing and static typing are not the same thing. "Dynamic" doesnt mean hidden. It means types are features of objects at run time. "Static" doest mean explicit. It means types are rules the compiler applies to the program text.
- Veedrac 9y agoI've just been debugging/fixing a bunch of C++ code that was incorrect due to a bunch of implicit casts and normally-invisible undefined behaviour, neither of which would have been possible in Python. I am not convinced.
- disconnected 9y ago>> Errors should never pass silently. > Well guess what, with C++ they don't even pass compilation. int * a; *a = 5; Segmentation fault. Oopsy. To be fair, "g++ -Wall" does complain that "a" is not initialized. But it is a warning, not an error. (And don't tell me that "you are not supposed to use pointers". They exist, someone is going to use them and proceed to shoot themselves in the foot.).