News for hackers. Stuff that matters.
Re:A Pythonista's Review of Haskell by giornogiovanna on Friday January 31, 2020 @02:09AM (#22199743)
Yes, of course you can encode it in any language you want, but the point is that ML-ish languages make it extremely natural to think like this, and Java makes it impossibly painful. Haskell makes traditional imperative algorithms painful, though, which is arguably a greater loss.
Re:A Pythonista's Review of Haskell by sweeneyrod on Friday January 31, 2020 @11:56AM (#22203176)
> ML-ish languages make it extremely natural to think like this

You say that, but actually fmap doesn't exist in OCaml (or I assume any other common MLs). Of course you can embed a language and type system within it that does have it (https://blog.janestreet.com/generic-mapping-and-folding-in-o...) but that's different.

Re:A Pythonista's Review of Haskell by giornogiovanna on Friday January 31, 2020 @08:27PM (#22207852)
Using List.map and Option.map is more verbose and less general, but it's still most of the way there.

OCaml still has currying, algebraic data types, "implicit" returns, tail call optimization, etc., and it encourages recursion instead of loops wherever applicable.

Re:A Pythonista's Review of Haskell by woadwarrior01 on Friday January 31, 2020 @05:52AM (#22200658)
Of all the languages I've seen, Swift seems to be the best compromise between ML style FP and imperative programming.
Re:A Pythonista's Review of Haskell by aloisdg on Friday January 31, 2020 @11:23AM (#22202874)
Did you try F#? How would you rank it?
Re:A Pythonista's Review of Haskell by woadwarrior01 on Saturday February 01, 2020 @03:28AM (#22209441)
Unfortunately, I haven’t. The only ML family languages that I have significant experience with are SML and OCaml.