Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Release of new version of Elm (A functional reactive language for interactive applications)

"This release introduces tasks, a way to define complex asynchronous operations. Similar to C#’s tasks and JavaScript’s promises, tasks make it simple to describe long-running effects and keep things responsive. They also provide a way to wrap up tons of browser APIs in Elm."



This is awesome. Dealing with HTTP requests used to be a pain since they were all signals even when they were used only once, which was not intuitive. This should make the language much more usable.


I prefer the backcalls of LiveScript to any implementation I have seen thus far, coupled with do, you can do some pretty complex things


There's probably going to be something like do-notation in Elm 0.16.


Aren't promises just a monad?


(Task x) has monadic structure, yes (see andThen, succeed). Naturally it also looks like Functor, Applicative, etc.

However, there is no way to work with monads in the abstract in Elm (yet), there is only the concrete API.


If it has those primitives, why not just wrap them up into a bind operator?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: