Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Monad Challenges: Jump start your understanding of monads. Parent comment
Couldn't any other language have a syntax like
thing.do(\x -> other thing(x)).do( \x -> yet another thing(x)).do( a function).do( more stuff).do( etc)
thing.do( \x -> f(x).do( \y -> g(x,y)))
Couldn't any other language have a syntax like
And then replace "\x -> whatever" with the local language's lambda syntax. The only time you get the painful nested parens is if you want It's not too terribly bad.