Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upreserve various useful future keywords #10293
Comments
This comment has been minimized.
This comment has been minimized.
|
Another suggestion: |
This comment has been minimized.
This comment has been minimized.
|
Yeah, |
This comment has been minimized.
This comment has been minimized.
|
It occurs to me that proper language versioning might be the right sol'n here. Java has managed to add keywords with (relatively) little pain, for example. |
This comment has been minimized.
This comment has been minimized.
|
Language Version markers is issue #3392 |
This comment has been minimized.
This comment has been minimized.
|
+1 for 'where' as a reserved keyword |
This comment has been minimized.
This comment has been minimized.
|
Accept that we will decide for 1.0. P-backcompat-lang. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Nov 7, 2013
|
|
This comment has been minimized.
This comment has been minimized.
|
@Jurily |
This comment has been minimized.
This comment has been minimized.
|
I did some research looking at other languages' keywords and a list of most common English words for likely candidates. Generally useful parts of speech (like
Things Rust doesn't have at the moment but conceivably could, and/or has in the past, and/or which have come up in discussions:
Exception handling:
Generally useful keywords from other languages which haven't found a home in Rust (and are too long anyways):
Keywords for things Rust has different (better:) solutions, words, and/or syntax for, and is unlikely to ever want, listed only in case someone else thinks differently:
|
This comment has been minimized.
This comment has been minimized.
|
I think language versions would be a much better solution than this. It's already getting to the point where very common words are reserved just because. It's annoying enough to need to come up with alternatives to words like |
This comment has been minimized.
This comment has been minimized.
|
If we do end up snagging more reserved words (though I agree that proper language versioning would be cleaner), I just wanted to add |
This comment has been minimized.
This comment has been minimized.
|
raise |
This comment has been minimized.
This comment has been minimized.
|
I'm also concerned about the future need for |
This comment has been minimized.
This comment has been minimized.
|
By the way, with respect to |
This comment has been minimized.
This comment has been minimized.
|
Nominated. I recall discussing this a couple months ago. Either this should be closed, or it should be on the 1.0 milestone. |
aturon
added
the
I-nominated
label
Sep 18, 2014
This comment has been minimized.
This comment has been minimized.
|
closing; we'll attack each future keyword as it comes up, but just reserving a laundry list is not an idea we want to consider further |
nikomatsakis commentedNov 5, 2013
I think we should reserve some keywords that we don't have specific uses for but which seem like they would generally be handy:
wheremyourtheirimmfor immutable/immutably/etc (pnkfelix, 2013nov07)Nominating.
cc @pnkfelix