2 ms·
Well, to be fair, sometimes, especially for short scripts, you're stuck with Python because you know it's going to be available. Personally, from a syntax poin
by Hizonner 5y ago
Well, to be fair, sometimes, especially for short scripts, you're stuck with Python because you know it's going to be available.
Personally, from a syntax point of view, as opposed to an easy availability point of view, I prefer Haskell, or Lisp if you can live with the parentheses. Haskell has some syntactic oddities, and the support for infix operators has encouraged the ecosystem to define way too many obscure </?$+/>-looking things, but the syntax mostly just gets out of your way and is relatively regular.
I do admit that if you're going to be infixy anyway, a C-like "?:" ternary is nice. C got its expressions right.
It is, of course, objectively true that one of the things Python does get right about syntax is the significant whitespace, and Haskell has that too (without the stupid colons). Curly braces are the work of the Devil, and "BEGIN" and "END" are just unmentionable.
- marcosdumay 5y agoI don't think Python gets semantic whitespace right. It requires extraneous parenthesis and has an impact on lambda functions, making them way less powerful than they should be. Haskell got it right.