The practical answer is that currying makes creating anonymous functions much easier. Even with a minimal lambda syntax, it's something of a win; compare:
map (add 1) [1..10]
map (\ x -> add 1 x) [1..10]
If you have an ugly lambda syntax, it's even worse. (I'm looking at you, JavaScript, Scheme and Python.)
I honestly don't think JS has such a bad lambda syntax; [1,2,3].map(x => 1+x) is still quite acceptable compared to what we have in Lua: function(x) return 1+x end*
* keep in mind that Lua is intentionally minimalistic, making it an easy transpilation target for languages with more convenient syntax, so this is effectively not a big problem
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The practical answer is that currying makes creating anonymous functions much easier. Even with a minimal lambda syntax, it's something of a win; compare:
map (add 1) [1..10]
map (\ x -> add 1 x) [1..10]
If you have an ugly lambda syntax, it's even worse. (I'm looking at you, JavaScript, Scheme and Python.)
net-informations.com/js/iq/default...
I honestly don't think JS has such a bad lambda syntax;
[1,2,3].map(x => 1+x)
is still quite acceptable compared to what we have in Lua:function(x) return 1+x end
** keep in mind that Lua is intentionally minimalistic, making it an easy transpilation target for languages with more convenient syntax, so this is effectively not a big problem