3 ms·
The partial application proposal looks reasonable and intuitive. Definitely something I would use. Is there any prior art (other languages etc.)? Mh, it's alre
by renke1 5y ago
The partial application proposal looks reasonable and intuitive. Definitely something I would use. Is there any prior art (other languages etc.)?
Mh, it's already 4 years old. What a shame.
- weego 5y agoScala has partially applied functions that use a very similar idiom
- alexfoxgill 5y agoIt is used heavily in Scala https://alvinalexander.com/scala/how-to-use-partially-applied-functions-in-scala-syntax-examples/ https://alvinalexander.com/scala/how-to-use-partially-applie...
- masklinn 5y agoClojure has the "thread-as" macro (`as->`), but I don't think it's used much: usually thread-first (`->`) and thread-last (`->>`) will more than do the job and have less mental overhead due to their regularity.
- graftak 5y agoThere’s a lot of bikeschedding on how to use it in conjunction with the (also stage 1 proposal and forever delayed) pipeline operator[1] unfortunately. Add in never ending arguments on which symbol we should use (the questionmark has a lot of responsibilities already) and here we are. To make matters worse it appear that generally OOP style darlings such as static class blocks and true private fields seem to gain more momentum. [1] https://github.com/tc39/proposal-pipeline-operator/wiki https://github.com/tc39/proposal-pipeline-operator/wiki