Re:The Perl Renaissance
by cpenner461 on Saturday February 16, 2013 @11:28AM
(#5231940)
So technically not "do/while", but:
[ Parent
| on HN ]
No, it's actually this:
do_stuff
while(some_condition):
do_stuff
The advantage of do/while in this situation is avoiding the duplicate code.
Re:The Perl Renaissance
by paulnechifor on Saturday February 16, 2013 @11:51AM
(#5232054)
I prefer:
while True:
codeHere()
if shouldStop():
breakMore like:
do_stuff
while(some_condition):
do_stuff
Re:The Perl Renaissance
by cpenner461 on Saturday February 16, 2013 @11:38AM
(#5231996)
Ahh yes - point taken.