@@ -18,11 +18,11 @@ subscription is. Here is the mental model in three steps:
18
18
or prevent events from happening. They just happen.
19
19
2. The elm runtime detects all events always: nothing happens that the runtime
20
20
does not know about.
21
- 3. The runtime uses the `subscription: model -> Sub msg` function given to it on
22
- application init to filter events. If one of subscriptions currently active
23
- matches an event detected, the elm runtime will use that subscription to
24
- process the event and send it to the app (via the `update: msg -> model ->
25
- (model, Cmd msg)` function).
21
+ 3. The runtime uses the `subscription: model -> Sub msg` function given to it
22
+ on application init to filter events. If one of subscriptions currently
23
+ active matches an event detected, the elm runtime will use that subscription
24
+ to process the event and send it to the app (via the `update: msg -> model
25
+ -> (model, Cmd msg)` function).
26
26
27
27
(A subscriptions returned by `subscription: model -> Sub msg` is active
28
28
between the time that the function returns and the next invocation of the
@@ -69,8 +69,9 @@ subscriptions in another-elm.
69
69
## 2020/5/2 -- Another elm
70
70
71
71
Here goes, a proper home for my take on the elm/* libraries. The idea is one
72
- repository (https://github.com/another-elm/std) containing everything you need
73
- (except the compiler) to use my custom implementation of the core libaries.
72
+ repository (<https://github.com/another-elm/std)> containing everything you
73
+ need (except the compiler) to use my custom implementation of the core
74
+ libraries.
74
75
75
76
The big new useful thing is a script './tools/another-elm' that can be used as
76
77
a drop in replacement for the elm compiler. It is (currently) pretty janky, be
@@ -81,7 +82,7 @@ time is very doable. Try it out:
81
82
82
83
sudo mkdir -p /opt/elm/
83
84
sudo chown $USER /opt/elm
84
- git clone https://github.com/another-elm/std /opt/elm/std
85
+ git clone < https://github.com/another-elm/std> /opt/elm/std
85
86
sudo ln -s /opt/elm/std/tools/another-elm /usr/local/bin/another-elm
86
87
87
88
## 2020/4/26 -- Merge elm/random back into core
@@ -121,8 +122,7 @@ Hopefully, use of this module can be reduced to a couple of key places and
121
122
maybe even inlined into the scheduler is that is the only place that uses it.
122
123
Hopefully, it will help us move all effectful functions out of elm.
123
124
124
-
125
- ## 2020/04/26 - the future?
125
+ ## 2020/04/26 - the future (?)
126
126
127
127
I wan't to move to away from callbacks and towards async/await and promises (or
128
128
futures). Firstly, I find that async/await is much easier to reason about than
0 commit comments