while else doesn't make sense
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Thu Jun 2 21:05:09 EDT 2016
More information about the Python-list mailing list
Thu Jun 2 21:05:09 EDT 2016
- Previous message (by thread): for / while else doesn't make sense
- Next message (by thread): for / while else doesn't make sense
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday, June 3, 2016 at 8:52:52 AM UTC+12, BartC wrote: > One major objection was that C's 'for' isn't really a for-statement at > all (as it is understood in most other languages that haven't just > copied C's version), but is closer to a 'while' statement. Apart from having local loop variables that get initialized just once. Not something you can fake with a “while” statement. That’s what makes C’s for-statement so versatile.
- Previous message (by thread): for / while else doesn't make sense
- Next message (by thread): for / while else doesn't make sense
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list