Skip to content

Commit

Permalink
Correct type signature of Elm updater in prior art
Browse files Browse the repository at this point in the history
This is a really small, minor change and I for sure won't feel bad if you all decide this isn't important enough to consider :) Thanks for your time!

Reference: https://github.com/evancz/elm-architecture-tutorial/#the-basic-pattern
  • Loading branch information
Luke Westby committed Dec 22, 2015
1 parent ec0b1a3 commit ff534e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/introduction/PriorArt.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ While it is technically *possible* to [write impure reducers](https://github.com

### Elm

[Elm](http://elm-lang.org/) is a functional programming language inspired by Haskell and created by [Evan Czaplicki](https://twitter.com/czaplic). It enforces [a “model view update” architecture](https://github.com/evancz/elm-architecture-tutorial/), where the update has the following signature: `(state, action) => state`. Technically, Elm “updaters” are equivalent to the reducers in Redux.
[Elm](http://elm-lang.org/) is a functional programming language inspired by Haskell and created by [Evan Czaplicki](https://twitter.com/czaplic). It enforces [a “model view update” architecture](https://github.com/evancz/elm-architecture-tutorial/), where the update has the following signature: `(action, state) => state`. Elm “updaters” serve the same purpose as reducers in Redux.

Unlike Redux, Elm is a language, so it is able to benefit from many things like enforced purity, static typing, out of the box immutability, and pattern matching (using the `case` expression). Even if you don’t plan to use Elm, you should read about the Elm architecture, and play with it. There is an interesting [JavaScript library playground implementing similar ideas](https://github.com/paldepind/noname-functional-frontend-framework). We should look there for inspiration on Redux! One way that we can get closer to the static typing of Elm is by [using a gradual typing solution like Flow](https://github.com/rackt/redux/issues/290).

Expand Down

0 comments on commit ff534e6

Please sign in to comment.