News for hackers. Stuff that matters.
Re:Partial Application and Lambda Parameter Syntax for JavaS... by some1else on Wednesday January 31, 2018 @07:00AM (#16273199)
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).
Re:Partial Application and Lambda Parameter Syntax for JavaS... by kalekold on Wednesday January 31, 2018 @08:22AM (#16273596)
Partial application is a technique, not a language construct. Plus, you can already use partial application in JavaScript and have been able to for years.