it = iter(foo)
while True:
try:
i = next(it)
catch StopIteration:
break
print(42)
and jumping to print(42) would skip the init and first iteration expression.
Of course that's non-obvious behaviour, so in practice you would make it a compile time error. A careful language designer might even decide to not support goto at all. :)
Of course that's non-obvious behaviour, so in practice you would make it a compile time error. A careful language designer might even decide to not support goto at all. :)