3 ms·
I’ve been using Haskell in production for three years and it’s been great so far! I think these concepts translate to other languages fairly well, and are easy
by MaxGabriel 6y ago
I’ve been using Haskell in production for three years and it’s been great so far!
I think these concepts translate to other languages fairly well, and are easy to learn in Haskell:
- Newtypes (Languages like Kotlin/Swift have support for them, and you can kinda get close with lots of classes in Java)
- Purity (can write “pure” code in most languages)
- Algebraic Data Types (help with thinking about modeling data, works in eg TypeScript)
- Maybe / Optional types (Now very popular in other languages)
- Parser Combinators (work in eg JavaScript)
- nextos 6y agoUndeniably, lots of ideas from pure lazy typed functional programming languages (some pioneered by Haskell) have influenced mainstream languages. Thus, by learning Haskell one can adapt to mainstream languages fairly quickly. However, I think there are still some extremely interesting ideas that can only be implemented in Haskell and some related languages (e.g. Joy) which may prove very useful. One can see the glimpse of that in Compiling to Categories [1]. In general, programming in a point-free way may lead to lots of advantages we don't understand well yet [2-3]. I think, for example, synthesizing point-free programs should be a cool path towards AI. [1] http://conal.net/papers/compiling-to-categories/ http://conal.net/papers/compiling-to-categories/ [2] https://www.cs.nott.ac.uk/~pszjlh/pcalc.html https://www.cs.nott.ac.uk/~pszjlh/pcalc.html [3] https://www4.di.uminho.pt/~jno/ps/pdbc.pdf https://www4.di.uminho.pt/~jno/ps/pdbc.pdf