Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by CodeMage on Friday March 30, 2012 @08:35AM
(#3775621)
I'm genuinely curious: is this because Haskell is generally hard to learn[] or because of some inherent property of Haskell that makes type classes unnecessary when you have first class functions?
[] This statement is based purely on my own experience. I find the Haskell documentation a bit unfriendly with its "academic" style. The content is great, but the form makes it a bit hard to assimilate. Monads were especially painful.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by calpaterson on Friday March 30, 2012 @10:03AM
(#3775948)
I don't think typeclasses were in from day one, they were added quite late in the development of the language (but some years before H98). I don't think they're in Miranda, for example.
Here's a paper introducing them.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by SamReidHughes on Saturday March 31, 2012 @11:55PM
(#3782596)
Type classes were in Haskell 1.0. See http://webcache.googleusercontent.com/search?q=cache:rtFsiQC...
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by yummyfajitas on Friday March 30, 2012 @10:37AM
(#3776104)
I stand corrected. I guess Haskell before H98 was a very different language than it is today.
[edit: apparently my sarcasm was too subtle. HOF and typeclasses are both vitally important pieces of Haskell, which are orthogonal to each other. I'm pretty sure both were in Haskell from day 1. Some code for which both are essential: