Live data from Hacker News

Elm: a functional reactive programming language that compiles to JavaScript

elm-lang.org

1–10 of 51 posts

Re: Elm: a functional reactive programming language that compiles to JavaScript

#6
Elm is extremely cool and I hope he expands on it.

Doesn't it seem like Elm could become HyperCard for the WWW, but with more powerful programming concepts?

I had a similar idea, but with a few more variations:

  * Syntax more like HyperTalk.
  * OOP/FP inspired from Factor. 
    (Which was inspired by a bunch of different languages.)
  * have it also run code on the server-side with 
    several data-store architectures to choose from.

Re: Elm: a functional reactive programming language that compiles to JavaScript

#7
It seems pretty neat, certainly a cool senior thesis!

One suggestion if you take this further is to add a "dictionary" or "hash table" type. For practical programming problems, that is pretty necessary.

But a really neat project - it's cool to see a functional programming take on the CoffeeScript-style compiling-to-javascript.

Re: Elm: a functional reactive programming language that compiles to JavaScript

#9
This surprised me: link has type (String -> String -> String), taking URL and label as arguments, and returning HTML code as a string (instead of as an Element).

Then you need to use the text function (String -> Element) to make that link appear properly on the screen.

This means that the text function (intentionally?) does not HTML-escape strings, even though examples suggest that it is the recommended way to put some unformatted text on the screen.

text seems very poorly named, especially if the goal is for HTML/CSS/Javascript to be treated like assembly. Maybe create a function called html that does what text does now, and let the text function be equivalent to (html . htmlEscape).

Looks nice overall, and I look forward to seeing how it develops. Is Elm available for download?

Post reply on HN