A wee newb question:

I notice in some examples the types are explicitly stated. For example:

http://elm-lang.org/examples/clock

has 

view : Model -> Html Msg
view model =

Why is this so? Can the compiler not infer this type? Is it just done for 
documentation purposes? If I deleted the "view : Model -> Html Msg" would 
the code still work?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to