Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Time Reading Confusion #195

Open
Piping opened this issue Apr 8, 2019 · 1 comment
Open

First Time Reading Confusion #195

Piping opened this issue Apr 8, 2019 · 1 comment

Comments

@Piping
Copy link

Piping commented Apr 8, 2019

Hi Evan,

  • 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

@harshshredding
Copy link

harshshredding commented Dec 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants