News for hackers. Stuff that matters.
Re:Ask HN: Why Haskell? by dllthomas on Sunday March 30, 2014 @08:45PM (#7498771)
When you say "other statically typed languages" do you mean ML and Agda, or Java and C?
Re:Ask HN: Why Haskell? by SamReidHughes on Sunday March 30, 2014 @08:52PM (#7498808)
Any. (Maybe not something as simple C or Go, and nothing like Agda, but something like ML or Java or C++.) There is something wrong with the grandparent post, because it's not making an argument that distinguishes Haskell from other statically typed languages.
Re:Ask HN: Why Haskell? by dllthomas on Sunday March 30, 2014 @09:24PM (#7498942)
Ok, well, for what it's worth I think that Haskell typing is equivalent in strength to ML. It's absolutely stronger than pre-generics Java; possibly isomorphic now. Roughly isomorphic to C++ with templates. In Haskell and ML, inference and clean syntax for type constructors makes it substantially easier to apply that power legibly (and structural pattern matching is a nice bonus). Monads let you extend that power to statements instead of just expressions.
Re:Ask HN: Why Haskell? by ibotty on Monday March 31, 2014 @02:33AM (#7499996)
no, haskell (ghc) has many extensions that extend hindley-milner by a great degree.
Re:Ask HN: Why Haskell? by dllthomas on Monday March 31, 2014 @05:12PM (#7504219)
Yes, I wasn't trying to make any strong claims of theoretical equivalence. In my experience with Haskell and OCaml and much more limited with SML, I've not found myself wanting to express a lot in those languages that I'd have been able to in Haskell, types-wise. Remember that the original question was "How much of Haskell's benefit do you think it provides that simply having static typing doesn't provide?" I should perhaps have been clearer.