4 ms·
Is there anybody who would argue against: - everything is an expression - destructuring - support for higher order functions Those seem to be universally lo
by jupp0r 7y ago
Is there anybody who would argue against:
- everything is an expression
- destructuring
- support for higher order functions
Those seem to be universally loved features that new programming languages are required to have in order to still be appealing.
- tsimionescu 7y agoWhile I personally agree with you, I know that some people really hate 'everything is an expression', especially when assignment is treated as an expression. This has been a very controversial addition to Python 3 for example. I would also mention that support for higher order functions, in the sense of functions which take other functions as arguments, is eevn possible in C. I think a much more important feature that is only recently becoming mainstream is support for lambdas. Support for HoF without lambdas is relatively worthless in my opinion.
- fctorial 7y agoLoops are not expressions in python.
- tsimionescu 7y agoMany things are not expressions in Python. My point was that the community is hostile to making (some of) them expressions, as was seen with the controversy over adding := as an assignment expression (so you can do `if x:=y`, for example).