Skip to content

Commit 926fbe3

Browse files
committed
Extend alternatives
As suggested by Steve Klabnik, we can also have both `be` and `become` as reserved keywords.
1 parent 2a4b7d2 commit 926fbe3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: text/0000-be2become.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Some code might be using `become` as an identifier.
2929

3030
# Alternatives
3131

32-
The main alternative is to keep the `be` keyword reserved for supporting guaranteed tail calls in a backward-compatible way. Using `become` as the keyword for tail calls would not be backward-compatible because it would introduce a new keyword, which might have been used in valid code.
32+
The main alternative is to do nothing, i.e. to keep the `be` keyword reserved for supporting guaranteed tail calls in a backward-compatible way. Using `become` as the keyword for tail calls would not be backward-compatible because it would introduce a new keyword, which might have been used in valid code.
33+
34+
Another option is to add the `become` keyword, without removing `be`. This would have the same drawbacks as the current proposal (might break existing code), but it would also guarantee that the `become` keyword is available in the future.
3335

3436
# Unresolved questions
3537

0 commit comments

Comments
 (0)