We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...
to
..
for
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
current:
a..
a..b
a...b
switch
proposed:
a to b
slice
Since ranged for do not permit unbounded ranges, there is no reason to use a syntax that allows it.
switch(a) { 0 to 10 => { // top ten }, 69 => { // nice }, else => { if(a<100} { // inside ranking } else { // outside ranking } }, } for(0 to 10) { // 11 steps executed } for(items, 0..) |item, i| { // iterate all } for(items[2..9], 10..) |item, i| { // item[2] , 10 // item[3] , 11 // etc }
The text was updated successfully, but these errors were encountered:
See #359 (comment)
Sorry, something went wrong.
Not interested in language proposals
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
current:
a..
a..b
a...b
switch
for
for
proposed:
a..
a..b
a to b
)switch
for
for
slice
Since ranged
for
do not permit unbounded ranges, there is no reason to use a syntax that allows it.The text was updated successfully, but these errors were encountered: