-
Notifications
You must be signed in to change notification settings - Fork 48
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
Suggestion: for...else (or for...empty) #75
Comments
|
Naive implementation :
=>
In the case of the
Use case :
or
|
Just read that on the for...else of python. Interesting read : http://psung.blogspot.com/2007/12/for-else-in-python.html |
What should it return when
So Python's isn't like this proposal, but relative to |
if the programmer wants to keep the actual for assignation logic, he should write :
Yes, wondering too which would be more worthwhile to implement. |
Done mostly as proposed; both I don't think we should follow Python's, which is unintuitive and complicated to compile. |
Seen in other languages,
or
thoughts ?
The text was updated successfully, but these errors were encountered: