Talk:Elm (programming language): Difference between revisions

Content deleted Content added
Line 50:
Elm get quite a bit of criticism; maybe it should be described here. Things like the removal of custom infix operators, custom kernel code, and the infrequent updates to Elm are controversial. [[User:Dullbananas|Dullbananas]] ([[User talk:Dullbananas|talk]]) 03:16, 25 December 2020 (UTC)
: It is not clear what you talk about, can you give examples and references please.
 
== Elm is an eager language ==
 
In a quick browse to Elm site I could not find how it evaluate functions. Because it transliterate to JavaScript, functions are called by value.
I did the following experiment:
<code>
enumFrom : number -> List number
enumFrom n = n :: (enumFrom (n+1))
</code>
testing the function I got:
<code>
> List.take 5 (enumFrom 1)
too much recursion
</code>
a lazy language (call by need) would eval to:
<code>
[1,2,3,4,5]
</code>
There are more things to fix in this article