evancz / guide.elm-lang.org

My book introducing you to Elm!
https://guide.elm-lang.org/
Other
321 stars 186 forks source link

First Time Reading Confusion #195

Open Piping opened 5 years ago

Piping commented 5 years ago

Hi Evan,

I came from a C background and got eye trained to catch the identifier first and then discover what type is associated with it. E.g void (*foo[])(int a) foo is the identifier and foo is an array whose elements are pointers to a function take an int as argument and return nothing.

But in the elm, I thought the identifier can start in the beginning of line. And apparently the type can have multiple words. For example foo : List String. I know foo is a List of String. Is it List<String>? But how about boo : List String A B C?

Can you elaborate more in the guide? How does the compiler program parse the input and determined the type.

Thank you for this awesome programming language. Best, Robin

harshshredding commented 1 year ago

I was planning on creating a similar issue, but I feel discouraged knowing that issues like this are not being replied to -- it had been 3 years since this was created. @evancz Can you at least let us know what your bandwidth is like for looking at issues like this ? A 3-year delay is worse than the US government immigration processing time.