4 ms·
ruby uses the next keyword for continue
by p4lindromica 15y ago
ruby uses the next keyword for continue
- mahmud 15y agoC++ and Java iterators use next as well.
- tedunangst 15y agoCalling next on an iterator and continue in a loop do very different things. C++ iterators use ++ too, but even though ++ and loops are often found together, I would not list ++ and continue as even remotely synonymous.
- draegtun 15y agoDitto for Perl. However Perl uses last instead break. NB. Since Perl 5.10 it does have continue & break in its given/when (topicalizer) switch block.