Skip to content

Remove then/begin/end tokens.#161

Merged
Fyren merged 2 commits intomasterfrom
murder-then-begin-end
Nov 7, 2017
Merged

Remove then/begin/end tokens.#161
Fyren merged 2 commits intomasterfrom
murder-then-begin-end

Conversation

@Fyren
Copy link
Contributor

@Fyren Fyren commented Nov 7, 2017

Currently, you can use *begin and *end to enclose compound statements in a lot of places as well as use *then to not require parentheses around the test for if statements. I have no idea why they have asterisks in the first place. Perhaps a lazy attempt to remove the syntax?

This patch additionally removes the ability to do while a == 1 do stmt();.

@dvander
Copy link
Member

dvander commented Nov 7, 2017

🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢

@dvander
Copy link
Member

dvander commented Nov 7, 2017

I'm pretty sure that was indeed a lazy attempt. I vaguely recall thinking the lexer would reject * because it would match earlier as just a '*', but of course that's not true.

@Fyren Fyren merged commit 00dc171 into master Nov 7, 2017
@Fyren Fyren deleted the murder-then-begin-end branch November 7, 2017 23:31
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.

2 participants