3 ms·
One cool thing about Haskell that really struck me and that usually isn't emphasized is partial application of function arguments. http://www.haskell.org/haske
by drblast 13y ago
One cool thing about Haskell that really struck me and that usually isn't emphasized is partial application of function arguments.
http://www.haskell.org/haskellwiki/Partial_application http://www.haskell.org/haskellwiki/Partial_application
I'm not sure if it's unique to Haskell, but it's such a great feature that I've wished for in other languages since learning about it. You can replicate it by manually writing curried functions, but having the language do that for you is incredibly useful.
- Dewie 13y agoYou get this kind of thing "for free" in a concatenative language, e.g. a stack based language. Though having to mostly rely on stack-combinators (this depends on the language and/or idioms of that language, not something that is inherent in concatenative languages) for writing functions might feel too limiting.