Terry Reedy wrote: > Cameron Simpson wrote: >> >> Back at uni we had to implement a small language in our compilers class >> and the lecturer had specified a proper generic while loop, thus: >> >> loop: >> suite >> while invariant >> suite >> endloop > > In Python, that is spelled > > while True: > suite > if not invariant: break > suite Indeed. This is the well known "loop and a half" problem. Eric.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4