On Thursday, August 4, 2016 at 11:32:07 PM UTC+1, Rupert Smith wrote:
>
> 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?
>

Tried deleting all the explicit types, and it seemed to work just fine. 

-- 
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