-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
Remove while
loops
#2233
Comments
Can you show some of the I can see losing /be |
OK, I went through the code base and picked out some representative functions. Most of them are simply iterating over a range. I think @marijnh has done this sort of exercise as well.
I'll note that @dherman has expressed skepticism about this idea and I also think that removing |
I feel uneasy about this: (1) people are very much used to |
Also keep in mind how the keyword will sound with the labeled break/continue from #2216. For a loop labeled I submit |
I think 'pass' is good. A four letter word and not used frequently as a variable name. |
...Sorry, that above comment was intended for 2229. |
There is some precedent in Sather for this. It only has one form of loop, infinite, introduced by My personal preference, though, is to keep |
Is it possible to implement |
The familiarity factor of |
I think this is not going to happen. Closing. |
Likely much more controversial than removing
do
, but this topic has come up several times. We do use a lot ofwhile
loops.The text was updated successfully, but these errors were encountered: