Re:Haskell's Children
by Ma8ee on Wednesday September 23, 2020 @08:18AM
(#24566093)
What is genuinely new in Haskell that didn’t already exist in academic languages in the eighties?
[ Parent
| on HN ]
Type classes and monadic IO (and having a type system being able to express monads as a thing).
Re:Haskell's Children
by AnimalMuppet on Wednesday September 23, 2020 @01:14PM
(#24569379)
Didn't stuff in the 80s have the ability to express monads, but nobody had yet realized that they were useful?
You can express particular monads, but to have a Monad class/trait for all monads you need first class type constructors (also known as higher-kinded types), and that is not common even today.
Re:Haskell's Children
by momentoftop on Wednesday September 23, 2020 @07:15PM
(#24573368)
SML has always let you abstract over type-constructors using modules, and it was always routine to do so. You can express monads abstractly in this way, and some people have (Ocaml, but the SML is the same modulo syntax):
http://batteries.forge.ocamlcore.org/doc.preview:batteries-b...
But the sort of code you would write in Haskell gets very noisy without typeclasses, and it's just not an obviously good way to program in a language that's intended to be impure and strict.