You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My programming background is imperative programming language.
I want to learn Elm because somehow I found that elm is ranked first for which functional programming to learn ( even above Haskell).
I was confused by how type is being read.
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
The text was updated successfully, but these errors were encountered:
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.
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 aboutboo : 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
The text was updated successfully, but these errors were encountered: