Jump to content

Talk:Elm (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2806:106e:b:aa51:21cd:cea5:1433:ec66 (talk) at 04:58, 23 November 2021 (Limitations: it needs to make clear this part.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputing: CompSci Stub‑class Low‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StubThis article has been rated as Stub-class on Wikipedia's content assessment scale.
LowThis article has been rated as Low-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Computer science.
Things you can help WikiProject Computer science with:

Untitled

This article is mainly based on primary sources. I've copied its content to a wikibook, just in case someone wants to delete or trim down the article at any time. Diego (talk) 10:19, 22 February 2014 (UTC)[reply]

Limitations

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)
                  [] -> []
I agree.
Elm is new to me, but I know about programming languages. What they mean is that Elsm has not what is also known as generic types.
That may be true if Elm has no class declarations like that of Haskell, because map can not be overloaded with specialized versions for several types (mapTree, mapList, mapT1, mapT2, etc.)
On the other side, it seems that Elm has classes but the article may be based in an incomplete version of the language, but planned by its author by 2015 as said in the limitations section.
I also suspect that it will have some provision for class declarations, because it is mentioned that it has a Maybe a type. (The Maybe monad?)
I am writing this comment by the end of 2021, that should be upgraded. As I said, Elm is new to me, I may fix it later when I am not too busy to learn Elm, which seem a to be good language.
Anyway if some Elm programmer can fix it, please do it.

--132.231.65.203 (talk) 17:03, 14 July 2015 (UTC)[reply]

The section is not wrong. Your implementation is specific to List. Higher-kinded types cannot be expressed in Elm (see: https://github.com/elm/compiler/issues/396).
85.212.193.55 (talk) 00:05, 30 December 2020 (UTC)[reply]

Example code section unnecessary

I believe the example code area is unnecessary, as that type of thing is not the purpose of Wikipedia. I'm making a comment here before removing it to see what others think. --LichWizard talk 18:48, 8 April 2018 (UTC)[reply]

I think some of it should be kept, like the "Hello World"; that seems typical of articles about programming languages. It would be nice if the rest was sectioned or re-labelled if the goal was to demonstrate "Syntax" or particular features. Mostly, though, I just wanted to point out that https://en.wikibooks.org/wiki/Elm_programming_language could be a place for material cut from here. --Everrob (talk) 20:56, 4 September 2018 (UTC)[reply]

I think the example is very useful to give a brief tour over the language features, so that Elm can be compared with its relatives (e.g. Haskell). Removing the flag. Andreasabel (talk) 07:17, 12 October 2021 (UTC)[reply]

More Diverse sources

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? — Preceding unsigned comment added by Ethan McCue (talkcontribs) 04:52, 18 September 2018 (UTC)[reply]

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. Dullbananas (talk) 03:16, 25 December 2020 (UTC)[reply]