3 ms·
http://elm-lang.org/ http://elm-lang.org/ for example. To display text in the browser you would use - main = plainText "Hello, World!" From the page: "Elm is
by nightski 13y ago
http://elm-lang.org/ http://elm-lang.org/ for example. To display text in the browser you would use -
main = plainText "Hello, World!"
From the page: "Elm is a functional language that compiles to HTML, CSS, and JavaScript".
So yes, technically this is working with the DOM. But you are not writing code that interacts with a "DOM binding" directly per se.
- platz 13y agoI'm excited for PureScript for the property that it compiles to sane javascript. http://purescript.readthedocs.org/en/latest/intro.html#hello-purescript http://purescript.readthedocs.org/en/latest/intro.html#hello...
- nightski 13y agoAwesome, had not heard of this project before! Thanks for sharing.
- rprospero 13y agoI've played with Elm for a toy project before and I do have high hopes for it. I also think it's the greatest monad tutorial ever - you don't truly miss them until they're gone. (To clarify: At the time that I last used Elm, the Signal type was a functor, but was intentionally being kept from being a monad for design reasons. Working around this restriction tought me a lot on why I needed monads.
- groovy2shoes 13y agoI didn't really understand applicative functors until I was playing with Elm. Working with Signals was pretty fun, and when I found out they were applicative functors, it was like a light bulb going off above my head. Elm is a really fun way to start exploring purely functional programming.