News for hackers. Stuff that matters.
Re:Big changes to Erlang by maxiepoo on Saturday February 01, 2014 @01:33PM (#7162699)
Using the y combinator outside of some ridiculously abstract code would be irritating. Using (>>=) makes sense sometimes though. For instance if you just wanted to echo something you could do

  do stuff <- getLine
     putStrLn stuff
but the stuff variable is then unnecessarily introduced. You could instead just write

  getLine >>= putStrLn
or the flipped version if you want it to read more like function application

  putStrLn =<< getLine
Re:Big changes to Erlang by logicallee on Saturday February 01, 2014 @02:33PM (#7163012)
how do neither of you get the obvious joke OP is making with "I think there's definitely a rule against dismissing Y combinators on news.ycombinator.com". (he's making a joke out of the fact that YCombinator is named after the construct.)
Re:Big changes to Erlang by buu700 on Saturday February 01, 2014 @02:53PM (#7163101)
That wasn't a joke.. People have been hellbanned for speaking ill of Y combinators.
Re:Big changes to Erlang by eruditely on Saturday February 01, 2014 @11:13PM (#7164785)
Really?
Re:Big changes to Erlang by thirsteh on Saturday February 01, 2014 @11:44PM (#7164870)
Maybe that was the joke.