3 ms·
Python has enough other design mistakes (statements vs expressions, destructive sort by default, and crippled lambdas to name a few) to keep away anyone with ex
by technomancy 14y ago
Python has enough other design mistakes (statements vs expressions, destructive sort by default, and crippled lambdas to name a few) to keep away anyone with exposure to a more functional style even without whitespace issues.
- TazeTSchnitzel 14y agoPython is a functional language. They are not design mistakes, but merely things you disagree with. Lambdas aren't "crippled", for that matter. You can throw about "normal" functions too, you just don't have the convenient expression syntax.
- technomancy 14y agoThere is no reason to include statements in a language other than inexperience.
- TazeTSchnitzel 14y agoI can't agree with that. "break", "exit", "return", variable declarations, etc. should never be expressions.
- technomancy 14y agoThe choice of whether to implement language constructs whose very semantics require that their return value be un-observable is completely arbitrary. Why make your language more complicated in order to support something that by definition has no effect? Of course things like crippled lambdas can be worked around by using a named function, but the fact that you have to do that in the first place tells you that the person implementing lambdas did so without at the time understanding what they were for. Anyway, it's fine for some kinds of imperative programs, but calling it a functional language is misleading.