Skip to content

Document whitespace rules for keyword syntax #12773

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

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

sabiwara
Copy link
Contributor

@sabiwara sabiwara commented Jul 8, 2023

I don't think this syntax rule was documented in the syntax reference, although it is rejected by the compiler in practice. Would it be a good idea to mention it?

I think there might be value in it especially since this is different from many languages like python or javascript.

Side note

Also wonder if we could improve the error messages. This one is nice:

Screenshot 2023-07-08 at 10 44 44

But this one might be confusing:

Screenshot 2023-07-08 at 10 44 39

Copy link
Member

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good addition. 👍

@sabiwara sabiwara merged commit 24efbdf into elixir-lang:main Jul 8, 2023
@sabiwara sabiwara deleted the syntax-ref-keywords branch July 8, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants