3 ms·
Your examples don't seem that great, to be frank. The lambda syntax isn't that different from the syntax for defining functions, unless you're referring to the
by weliketocode 8y ago
Your examples don't seem that great, to be frank.
The lambda syntax isn't that different from the syntax for defining functions, unless you're referring to the fact that it's different than anonymous functions in other languages.
I don't find the inability to pass around operators to be a hindrance, but the fact that getting into python requires understanding all of these dunder or magic methods is another story.
However, on map, filter, & reduce, I agree with you completely.
One of the worst aspects of python is the extensive use of bad practices, and ignoring functional programming principles is one of the top offenses.
- nikofeyn 8y ago> Your examples don't seem that great, to be frank. they weren't intended to be great or mind blowing. they were just examples to make the point that in a good language, it's clear what is going on. the operator thing is an extension of that. in f#, the "infixness" is just a syntax thing. the semantics is that they are functions and can be treated as such. it seems operators are something weird in python.