4 ms·
Nice article. I still prefer arrow functions over positional arguments though, because this approach trades some clarity for syntactic sugar. Until partial appl
by some1else 9y ago
Nice article. I still prefer arrow functions over positional arguments though, because this approach trades some clarity for syntactic sugar. Until partial application becomes part of JavaScript, the import statement will probably outweigh the informative "boilerplate" it helps obscure anyway (there's rarely more than one use case for partial application inside a well-factored component).
- kalekold 9y agoPartial application is a technique, not a language construct. Plus, you can already use partial application in JavaScript and have been able to for years.