Re:Eclipse launches new language to cut down Java boilerplat...
by Periodic on Saturday November 05, 2011 @12:08AM
(#3198883)
You beat me to it.
What I love about the Haskell version is it says only exactly what needs to be said.
sayHello - get the hello message for something.
putStrLn - send something to stdout
mapM_ - Do these things in sequence, I don't care about the result.
Together they say take a list of people, get their greeting strings and print them to stdout in order. It's hard to say it more succinctly without making things confusingly implicit.
What I love about the Haskell version is it says only exactly what needs to be said.
sayHello - get the hello message for something. putStrLn - send something to stdout mapM_ - Do these things in sequence, I don't care about the result.
Together they say take a list of people, get their greeting strings and print them to stdout in order. It's hard to say it more succinctly without making things confusingly implicit.