Re:Big changes to Erlang
by derefr on Saturday February 01, 2014 @12:52PM
(#7162455)
They're important in CS theory, sure, but you sure don't want to encounter one in raw form lurking in a regular codebase. (Just like you wouldn't want to encounter monadic IO in raw >>= form.)
[ Parent
| on HN ]
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.)
That wasn't a joke.. People have been hellbanned for speaking ill of Y combinators.
Really?
Maybe that was the joke.