Conversation
Notices
-
#python has no do..while loop? this is a really strange language
-
@splitbrain: 'while condition:'
-
@splitbrain: it is, and do … while doesn't fit into the concept of indented blocks you must admit.
-
@tante that's a while loop, not a do..while loop.
-
@splitbrain: Since you can effordless translate on into the other, why have two options? Makes sense to offer just one way ;)
-
@tante it's not effortless and requires more code. do..while is even in C - and they are masters in omitting convenience functions
-
@splitbrain I'm sure that there is some other suitable #python magic for every situtation where a do..while loop would make sense (in C) :)
-
@splitbrain while True: ... if condition: break
-