-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Error message more helpful when having triple equals instead of double inside lambda fn #3125
Comments
Thank you. We don't need to have a specific |
It could be cool to have a specific error message for this case, especially for folks used to JS:
|
Humm, I wonder if this error message is enough?
|
Yeah I agree that could be more than enough for all other binary operators, but in case of |
Because people are so used to strictly equals why can't the formatter just kill it with fire and replace it with double equals? |
That could also be an option, but a good error message is still required as not everyone runs the formatter |
100% |
[1,2,3] |> list.filter(fn (a) { a === 3 }) will produce an error :
Hint: Use let for binding.
See: https://tour.gleam.run/basics/assignments/
The text was updated successfully, but these errors were encountered: