News for hackers. Stuff that matters.
Re:Elm: declarative language that compiles to HTML, CSS and JS by anonymousDan on Wednesday December 12, 2012 @05:55PM (#4912937)
Apart from syntax, I fail to see how this code:

    getPhotos tags =
        let photoList  = send (lift requestTag tags) in
        let photoSizes = send (lift requestOneFrom photoList) in
            lift sizesToPhoto photoSizes
...is any clearer than the equivalent callback code:

  function getPhoto(tag, handlerCallback) {
        asyncGet(requestTag(tag), function(photoList) {
            asyncGet(requestOneFrom(photoList), function(photoSizes) {
                handlerCallback(sizesToPhoto(photoSizes));
            });
        });
In particular, you still have to nest the elm signals in 'let ... in' blocks.

There are no comments on this comment yet.