不知道有没有人关注Elm的?

#1

最早从Redux的repo中看到过它,感觉Elm官网的文档不是很完善,很多东西找不到链接,我刚开始getstarted页面都没找到,guide的部分我是直接找的github仓库 https://github.com/elm-lang/elm-lang.org/tree/master/src/guide/chapters

想接触一门纯FP语言,FRP的wiki链接里也包括Elm,最近又看到这个 https://github.com/gaearon/react-elmish-example 总觉得学习Elm Arcitechture会挺有帮助,准备花点时间。

不知道有没有对Elm有了解的?

#2

一直在关注, 曾经尝试写, 至今没上手…
Om 的 Clojure 的 interface 我觉得会比 Haskell 的 ADT 类型简单一些, 我先考虑学 Om

#3

最近有個中文文檔,可參考

#4

FP 的概念还是了解一些的,今天看到楼主提的 Elm ,真心觉得前端越来越繁荣了,也希望自己也能跟着了解一下。

wiki 上我看到了这样一段话:

The key abstraction in Elm is called a Signal. It is a value that changes over time.[14] For example, the Mouse.position signal in the following code acts on “the current position of the mouse”, so the programmer does not need to manually handle an event each time the mouse moves:[15] Signal.map refers to the map function in the Signal module, which applies show to each mouse position to transform it into a DOM element onscreen.

    import Mouse
    import Graphics.Element exposing (show, Element)

    main : Signal Element
    main =
        Signal.map show Mouse.position

感觉 Elm 弱化了 Event ,然后还看到了一段话:

Interoperability with HTML, CSS, and JavaScript

Elm uses an abstraction called ports to communicate with JavaScript.[20] It allows values to flow in and out of Elm programs, making it possible to communicate between Elm and JavaScript.

Elm also has a library called elm-html which lets users use HTML within Elm and style it with CSS.[21] It uses a virtual DOM approach to make updates efficient.

这部分感觉就和 React 一样了吧,我喜欢 FP 的理念,就像 Linux 的 Pipe :smirk:

#5

好喜欢elm,现在应该是0.19版本,感觉还是不错的