----- Original Message ----- From: "Samuele Pedroni" <pedronis@bluewin.ch> > So syntax-wise I personally would go for: > > do iterate(lst): (x): > print x > > introducing a new-keyword 'do' (or something similar) and that would imply > inline-suite-like scoping. > this clarify scoping, still while what 'return' should do is more or less clear cut (non-local return), what break or continue should do is ambiguous: for lst in lists: do iterate(lst): (x): if not x: break # should break 'do' or 'for' print x vs for lst in lists: do synchronized(lock): if not x: break # should probably break 'for' print x so maybe we need a way to differentiate also this, so two different keyword regards.
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