Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing Cmd explicitly #177

Open
lucasdicioccio opened this issue May 27, 2017 · 0 comments
Open

Introducing Cmd explicitly #177

lucasdicioccio opened this issue May 27, 2017 · 0 comments

Comments

@lucasdicioccio
Copy link
Contributor

Hi, thanks for the Tutorial, very useful.
For calibrating this "issue": I'm new to Elm with a strong Haskell background.

One thing I found disturbing is that Cmd felt magical. Elm seems very explicit about imports and Cmd is in scope without import. I suggest to add a short paragraph about what Cmd is and how it comes into scope in 02-elm-arch/02-structure.html -- right when Cmd is used. Presently, Cmd.none is given out w/o much explanation (or I missed a section). Maybe the application flow diagram could be usefully brought at this point. Another way to address this is to stress what consumes the Cmd when commenting the type of update : Msg -> Model -> ( Model, Cmd Msg ) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant