Re:Dijkstra on Haskell and Java (2001)
by Typhon on Wednesday January 08, 2014 @10:12AM
(#7023916)
If Haskell is the C++ of functional languages, what, in your opinion, is the C of functional languages ?
[ Parent
| on HN ]
Re:Dijkstra on Haskell and Java (2001)
by danieldk on Wednesday January 08, 2014 @10:36AM
(#7024087)
Except that Scala already is ;). Haskell pretty much sticks to functional programming and resisted adopting other paradigms (e.g. OO via O'Haskell). Scala, on the other hand seems to adopt as many paradigms as C++.
Scheme.
Re:Dijkstra on Haskell and Java (2001)
by raverbashing on Wednesday January 08, 2014 @10:20AM
(#7023970)
I want the Python of functional languages
Re:Dijkstra on Haskell and Java (2001)
by grayrest on Wednesday January 08, 2014 @10:29AM
(#7024027)
That would be Clojure.
Also Scheme. :-)
Re:Dijkstra on Haskell and Java (2001)
by michaelochurch on Wednesday January 08, 2014 @10:37AM
(#7024097)
The C of statically typed functional languages is OCaml.
Which is more complicated and less expressive than haskell? That seems like a pretty bizarre choice.
Re:Dijkstra on Haskell and Java (2001)
by michaelochurch on Wednesday January 08, 2014 @11:11AM
(#7024357)
When I used OCaml, I almost never used the object system. I didn't need it.
The "full" OCaml is pretty complicated, but most of the libraries don't force the "O" on you. (That said, if you're going to use OCaml, you should use the Jane Street libraries, which are far better than the standard library.)
>When I used OCaml, I almost never used the object system. I didn't need it.
Me neither, but it is still part of the language and adds a ton of complexity. Which makes the analogy of ocaml to C vs haskell to C++ quite poor.
>The "full" OCaml is pretty complicated
Precisely the point. The full C++ is pretty complicated too. The full haskell is far simpler than either.
>That said, if you're going to use OCaml, you should use the Jane Street libraries
They didn't exist when I used ocaml, and I would never go back to ocaml now.