Skip to content
New issue

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

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

Already on GitHub? # to your account

Mention empty curlies #228

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Mention empty curlies #228

merged 2 commits into from
Sep 30, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Sep 30, 2024

Fixes #191

@MichaelChirico one more!

@@ -333,6 +337,10 @@ if (y == 0)
message("x is negative or zero")
}
} else { y ^ x }

while (waiting_for_something()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe clarify { } is also discouraged?

while (waiting_for_something()) { }

@hadley hadley merged commit fa6813e into main Sep 30, 2024
1 check passed
@hadley hadley deleted the empty-curlies branch September 30, 2024 21:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify empty braced statements
2 participants