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

feat(compiler): Allow non-block bodies with loops #2064

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

alex-snezhko
Copy link
Member

Allows for and while loops to be used without block bodies

for (let mut i = 0; i < 5; i += 1)
  print("Hello")

Copy link
Member

@spotandjake spotandjake 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 looks great, should we add some comment formatting tests like:

for (let mut i = 0; i < 10; i += 1) /* Comment */ print("Here")

@ospencer ospencer added this pull request to the merge queue Mar 25, 2024
Merged via the queue into grain-lang:main with commit 6fd1603 Mar 25, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Mar 25, 2024
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.

None yet

3 participants