Elm (programming language): Difference between revisions

Content deleted Content added
Example code: separated de use of _ to make more clear the example of case and changed the name of lambda expression to hello to avoid confusion with languages that use the lambda keyword
Features: little improvement in higher order functions part. See my comment in discussion.
Line 25:
 
== Features ==
Elm has a small set of language constructs, including traditional if-expressions, let-expressions for local state, and case-expressions for [[pattern matching]].<ref name="syntax">{{cite web|url=http://elm-lang.org/learn/Syntax.elm|title=syntax|website=elm-lang.org|access-date=2013-05-31|archive-url=https://web.archive.org/web/20160313052210/http://elm-lang.org/learn/syntax.elm|archive-date=2016-03-13|url-status=dead}}</ref> As a functional language, it supports [[anonymous function]]s, functions as argumentsargumensts, and functions can return functions, the later often by partial application byof curried defaultfunctions. Its semantics include immutable values, [[pure function|stateless functions]], and static typing with type inference. Elm programs render HTML through a virtual DOM, and may interoperate with other code by using "JavaScript as a service".
 
=== Immutability ===