4 ms·
Python 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 ab
by TazeTSchnitzel 14y ago
Python 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.