Comment Comment by necovek But that actually makes it more similar to Python.In Python, `for value in iterator: x(value)` is syntactic sugar for (roughly) while True: try: value = next(iterator) except IterationError: break x(value) Basically, it seems that `while conditional` are both low-level control flow constructs in both: how do they differ between languages? parent necovek 5 years ago
In Python, `for value in iterator: x(value)` is syntactic sugar for (roughly)
Basically, it seems that `while conditional` are both low-level control flow constructs in both: how do they differ between languages?