3 ms·
Why do you hate Python? And what is your opinion on Nim, Crystal, Rust etc?
by satvikpendem 4y ago
Why do you hate Python? And what is your opinion on Nim, Crystal, Rust etc?
- ihatepython 4y agoI don't know exactly why, but whenever I write something in Python I get extremely irritated. I'm always worried that I'm going to clobber the namespace somehow. Some functions like 'str' are extremely short and common, and happens to be a variable I always use for temporary variables. The forced indentation messes up the code when I want to debug something by commenting out a bunch of lines. But sometimes there is a builtin module that makes something easier to do, so I am faced with a 'Kobayashi Maru', a no-win situation I've never used Nim or Crystal. Rust is too complicated for me to bootstrap and not particularly compatible with older architectures as far as I remember (I believe had trouble with compiling 32-bit)
- cb321 4y agoFWIW, Nim has various trade offs for you. It has an alternative comment syntax that goes like echo 1 #[ deactivated ]#, 2 While `from modA import nil` does exist, it is not very idiomatic. Idiomatic is more managing the global namespace with the type system/overload resolution which it sounds like you would hate. However, shadowing outer scope names with inner scope names (like your `str` example) *is* considered idiomatic.