The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

24997 (12) [Avatar] Offline
#1
"In Elm, a function body is a single expression"

That, in my opinion, should be in a special note with emphasis. I could not figure out what was wrong in my code from the compiler error message when I inserted a Debug.log "main" in an existing code example after the "main" label and the existing expression.

I didn't see any mention of that in the Elm syntax guide

http://elm-lang.org/docs/syntax#functions

and I think it should be added.
rtfeldman (60) [Avatar] Offline
#2
Thanks for the feedback! I'll pass that along. smilie