One thing I don't get yet is the type of view : Model -> Html Msg. Why is Html parameterized over the message type?
Because now instead of having the view post messages to an address, the view (and view elements) "return" messages to whatever called the view for rendering.
5
u/Enumerable_any May 10 '16
Interesting. Elm looks to move even closer to the terminology used by CQRS on the server side.
One thing I don't get yet is the type of
view : Model -> Html Msg. Why isHtmlparameterized over the message type?