Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Elm – functional reactive language for interactive applications. Parent comment
If all you want is syntactic sugar, Elm has infix lift operators so:
let p = lift2 (+) Mouse.x Mouse.y
let p = (+) <~ Mouse.x ~ Mouse.y
let p = do x <- Mouse.x y <- Mouse.y return (x + y)
There are no comments on this comment yet.
If all you want is syntactic sugar, Elm has infix lift operators so:
becomes: If you don't like that, Haskell has `do` notation. If Elm also had it, you could do: