Re:What's Coming in Python 3.8
by ben509 on Wednesday July 17, 2019 @08:39PM
(#20465526)
One solution would be to borrow from Perl. You make a do block that executes once unless continued, and allow conditions on break and continue:
And you can now express "skip ahead" with a `break if X` as well.
[ Parent
| on HN ]
Re:What's Coming in Python 3.8
by adrianratnapala on Wednesday July 17, 2019 @11:16PM
(#20466379)
Yes, although you don't have to be so perlish as to do the if in that order
do:
thing()
thing()
if condition:
continue