-
Notifications
You must be signed in to change notification settings - Fork 72
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
Remove keywords *begin
, *end
and *then
#681
base: dev
Are you sure you want to change the base?
Conversation
This issue has been automatically marked as stale because it has not had recent activity. |
Merged locally. |
…o-while` This includes removal of keywords `*begin`, `*end` and `*then`.
19b736d
to
08e3086
Compare
While working on this PR, I noticed one interesting detail: main()
{
new x = 0;
do { ++x; } while x < 10; // this would compile, even though
// there are no parentheses around 'x < 10'
} Apparently, the parentheses around the control expressions of I wonder if this syntax is already used somewhere. Because if not, then removing it would allow to greatly simplify the code in function |
08e3086
to
6c565c5
Compare
What this PR does / why we need it:
Removes keywords
*begin
,*end
and*then
, as well as alternative syntaxes forif
,switch
,for
,while
anddo-while
statements, as explained in #611.Which issue(s) this PR fixes:
Fixes #611
What kind of pull this is:
Additional Documentation:
This PR also includes the changes from #680 (they are needed to prevent a crash in one of the tests), so you'll probably want to review and merge that PR first.