3 ms·
Somehow seeing the function keyword to the right of the '=' in Javascript bothers me, and I'd rather not do JS if possible. JSON is a win, though.
by smitty1e 5y ago
Somehow seeing the function keyword to the right of the '=' in Javascript bothers me, and I'd rather not do JS if possible.
JSON is a win, though.
- nicoburns 5y ago> Somehow seeing the function keyword to the right of the '=' in Javascript bothers me, and I'd rather not do JS if possible. Ah, but you've hit against ones of Python's biggest limitations compared to JavaScript (the two languages being semantically very similar): poor support for functional programming paradigms. And that is in no small part due to limited lambda/closure support (no multiline lambdas). You can also use arrow functions to avoid the function in modern JavaScript.
- smitty1e 5y agoKinda need to have you elaborate on 'poor' here. "Functional Python Programming: Discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads, 2nd Edition" was a great read =>https://www.amazon.com/Functional-Python-Programming-programming-built/dp/1788627067/ref=mp_s_a_1_3 https://www.amazon.com/Functional-Python-Programming-program...