2 ms·
Lambda has to be the least intuitive part of Python. even the name of it "Lambda" makes it sound like some deep computer science complex thing, inaccessible to
by andrewstuart 4y ago
Lambda has to be the least intuitive part of Python. even the name of it "Lambda" makes it sound like some deep computer science complex thing, inaccessible to beginners.
In JavaScript I constantly use anonymous functions everywhere and they are easy to understand and use.
The same concept in Python is clunky, hard to understand and definitely not easy to use.
JavaScript absolutely trounces Python when it comes to compact, minimal, highly expressive anonymous functions.
JavaScripts arrow functions are so elegant and so compact and so effective that they completely change the way I program JavaScript. No such equivalent exists in Python.