Content deleted Content added
→More Diverse sources: not necessary to have more sources for a new language. |
→Removal of Wikidata URL: fix indentation, reply |
||
(18 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Talk header}}
{{Old AfD multi |date=18 February 2018 |result='''speedy keep''' |page=Elm (programming language)}}
{{WikiProject
{{WikiProject Computing|importance=Low|science=yes|science-importance=Low|software=yes|software-importance=Low|free-software=yes|free-software-importance=Low}}
}}
==Untitled==
This article is mainly based on primary sources. I've copied its content to [https://en.wikibooks.org/wiki/Elm_programming_language a wikibook], just in case someone wants to delete or trim down the article at any time. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:19, 22 February 2014 (UTC)
:Yo arenyoukk? [[Special:Contributions/2A00:F41:B0B6:D331:A6D6:66B9:AC34:EAE6|2A00:F41:B0B6:D331:A6D6:66B9:AC34:EAE6]] ([[User talk:2A00:F41:B0B6:D331:A6D6:66B9:AC34:EAE6|talk]]) 23:44, 16 August 2024 (UTC)
== Limitations ==
Line 10 ⟶ 14:
The section about limitations is wrong. Elm does support higher-order functions. Therefore functions such as fold and map do exist. Compare http://package.elm-lang.org/packages/elm-lang/core/2.1.0/List or the following piece of valid code:
<
map : (a -> b) -> List a -> List b
map f xs = case xs of
(y::ys) -> (f y) :: (map f ys)
[] -> []
</syntaxhighlight>
:: I agree.
Line 45 ⟶ 49:
Most of the sources link back to official Elm documentation. Are there any other alternative sources that can be cited so that all references aren't dependent on the same team as makes the language? <!-- Template:Unsigned --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Ethan McCue|Ethan McCue]] ([[User talk:Ethan McCue#top|talk]] • [[Special:Contributions/Ethan McCue|contribs]]) 04:52, 18 September 2018 (UTC)</small> <!--Autosigned by SineBot-->
: Elm is 0.19.1-5 version by November 2021, do not expect to have a lot of sources. It is OK to base the article in the information of the official site, but written by volunteers who know about programming language principles, not just programming aficionados. Those who know about the subject in general can see features that the aficionados can't. For example I see that the article as it is now was not written by someone familiar with the principles behind Elm, for example it does not mention if the language is laze or eager. Pure functional is ambiguous in this sense, a true functional language should be lazy. It also say that the language has stateless values, any pure functional language has variables as used in mathematics not mutable state memory locations. The ignorance of those features of functional languages is what makes the article unclear not the lack of many sources. Volunteers with a strong background can be critical to analyse the language and write a good article of this language (and others too). <!-- Template:Unsigned IP --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/2806:106E:B:AA51:21CD:CEA5:1433:EC66|2806:106E:B:AA51:21CD:CEA5:1433:EC66]] ([[User talk:2806:106E:B:AA51:21CD:CEA5:1433:EC66#top|talk]]) 05:40, 23 November 2021 (UTC)</small> <!--Autosigned by SineBot-->
== Criticism ==
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:
<syntaxhighlight lang="text">
enumFrom : number -> List number
enumFrom n = n :: (enumFrom (n+1))
</syntaxhighlight>
testing the function I got:
<syntaxhighlight lang="text">
> List.take 5 (enumFrom 1)
too much recursion
</syntaxhighlight>
a lazy language (call by need) would eval to:
<syntaxhighlight lang="text">
[1,2,3,4,5]
</syntaxhighlight>
There are more things to fix in this article <!-- Template:Unsigned IP --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/2806:106E:B:AA51:21CD:CEA5:1433:EC66|2806:106E:B:AA51:21CD:CEA5:1433:EC66]] ([[User talk:2806:106E:B:AA51:21CD:CEA5:1433:EC66#top|talk]]) 06:45, 23 November 2021 (UTC)</small> <!--Autosigned by SineBot-->
== Removal of Wikidata URL ==
@[[User:Alexflatter|Alexflatter]]: why'd you remove the Wikidata URL from the infobox in {{diff|diff=prev|oldid=1276928300|label=this diff}}? I'm unfamiliar with the policy here so I'm not going to revert, but I'd appreciate it if you'd provide a reason. {{pb}} Also, I'm sure other editors would appreciate it if you would make use of edit summaries to explain your edits (and ideally cite policy/guidelines) so that we don't have to ask like this. [[User:Gracen|Gracen]] ([[User talk:Gracen|they]]/[[Special:Contributions/Gracen|them]]) 16:38, 21 February 2025 (UTC)
:I don't think there's much of a difference, but my version looks better visually (without the blue pencil). This doesn't violate cite policy/guidelines. [[User:Alexflatter|Alexflatter]] ([[User talk:Alexflatter|talk]]) 17:00, 21 February 2025 (UTC)
::Fair enough that it looks better without the blue pencil. By the way, when I said {{tq|cite policy/guidelines}} (I realize my language may have been confusing), I meant that you should explain your edits in the edit summary and, if possible, mention in that summary any pages in the [[Wikipedia:project namespace|project namespace]] that provide additional support for your edit. See [[WP:FIES]] for more info. [[User:Gracen|Gracen]] ([[User talk:Gracen|they]]/[[Special:Contributions/Gracen|them]]) 17:33, 21 February 2025 (UTC)
|