Re: What I wish someone had told me...

Albet Lai wrote: John Lato wrote:
Are you advocating introducing existential types to beginning Haskellers? I think something with the scary name "existential quantification" would greatly increase the head'splodin' on the learnin' slope.
OOP(*) advocates introducing existential types to beginning programmers.
Yes, because they're required to get almost anything done in OOP languages. In general they are not required in Haskell. I got a bit carried away with rhetorical flourish, but my point wasn't so much that beginners couldn't understand something as that something with such specialized usage isn't necessary for new Haskellers, and is likely to encourage bad habits from OOP-converts.
The broken analogy between OOP interfaces and Haskell/Isabell type classes is there because some people insist that all languages should be like mainstream languages. You have heard it, even from reputable leaders and pioneers: "if you know one language, picking up others should be easy, they just differ in syntax".
I have heard it, and I used to believe it. Now I think it's only true provided the one language you know is suitably advanced (and currently non-existent, I think). John

leaders and pioneers: "if you know one language, picking up others should be easy, they just differ in syntax". I have heard it, and I used to believe it. Now I think it's only true provided the one language you know is suitably advanced (and currently non-existent, I think).
It all depends on what you consider as "knowing a language". After all, a Real Programmer can write Fortran in any programming language, Stefan
participants (2)
-
John Lato
-
Stefan Monnier