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

Make parentheses optional for case, for and if expressions. #589

Merged
merged 2 commits into from
May 1, 2023

Conversation

gdotdesign
Copy link
Member

@gdotdesign gdotdesign commented Apr 27, 2023

It can still parse parentheses but doesn't output them when formatting so basically deprecating it.


Background: I recently started playing with Rust, and they don't have parentheses for ifs and such, and I realized that they are not needed in Mint 🙂

  • The changes to .mint files are from the formatter.

It can still parse parentheses but doesn't output them when formatting so basically deprecating it.
@gdotdesign gdotdesign added enhancement New feature or request language Language feature labels Apr 27, 2023
@gdotdesign gdotdesign requested a review from Sija April 27, 2023 14:07
@gdotdesign gdotdesign self-assigned this Apr 27, 2023
@gdotdesign gdotdesign added this to the 0.18.0 milestone Apr 27, 2023
src/parsers/case.cr Show resolved Hide resolved
src/parsers/if.cr Show resolved Hide resolved
@gdotdesign gdotdesign changed the title Make parentheses optional for case and if expressions. Make parentheses optional for case, for and if expressions. May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language Language feature
Development

Successfully merging this pull request may close these issues.

2 participants