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

A hint for this error would probably have saved me time. #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rluiten
Copy link

@rluiten rluiten commented Dec 23, 2015

A hint like "Are you accessing something that is not a record type as a record".
The classic example is are you doing "myVar.length" when you should be doing "List.length myVar"

I've been doing quite a lot of Elm the last few weeks, and this error in a more complex scenario swallowed well over an hour because I did not have the right experience for it yet. The next time I hit this I am sure it will be minutes to solve.

I think it would have helped me a lot to give a hint to the error message as you do very usefully in many other errors.

A hint like "Are you accessing something that is not a record type as a record".
Maybe with an example in hint as well.
The classic example is for most devs   myVar.length   when they mean  List.length myVar
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

Successfully merging this pull request may close these issues.

1 participant