DEV Community

Discussion on: Currying in JavaScript

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

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