If a newbie reads the first quick example on the website (https://guide.elm-lang.org/) he/she/they might understand most of it (if programming is not a new thing), but after clicking the link to the preview the code looks slightly different.
It's not a biggy, but this is a bit confusing if you are completely new to elm.
EDIT2: Parts of the code can be removed and it will still work. Why is this possible?
Example: view : Model -> Html Msg
or code like this: viewInput : String -> String -> String -> (String -> msg) -> Html msg
from the form example
If a newbie reads the first quick example on the website (https://guide.elm-lang.org/) he/she/they might understand most of it (if programming is not a new thing), but after clicking the link to the preview the code looks slightly different.
It's not a biggy, but this is a bit confusing if you are completely new to elm.
EDIT: The example of the preview repeats in the tutorial (https://guide.elm-lang.org/architecture/buttons.html), but it differs from the code from the first page.
EDIT2: Parts of the code can be removed and it will still work. Why is this possible? Example:
view : Model -> Html Msg
or code like this:viewInput : String -> String -> String -> (String -> msg) -> Html msg
from the form example