3 ms·
Yes, this can be implemented. And languages can trust the developers to not write stuff like f(3, fst:5). This is not a large scale pattern where people need he
by marcosdumay 6y ago
Yes, this can be implemented. And languages can trust the developers to not write stuff like f(3, fst:5). This is not a large scale pattern where people need help to refactor.
The one largest obstacle for partial application (at least of the Haskell style) is optional arguments. You just can not have both.
- sukilot 6y agoI'd bet 4:1 odds that Haskell supports optional arguments with partial application using something like typeclass magic.
- marcosdumay 6y agoIf you want optional arguments and partial application, you need some way to declare that the optional arguments are left blank. Haskell-style syntax has no such way. But yeah, functors are all about building stuff like that. So there are similar things, just with a different syntax.