Donald Beaudry <donb@abinitio.com>: > In a for or while, the else clause only gets executed when > the statement terminates "normally" (not due to a break). Following > this model, one might expect the else clause associated with a 'when' > statement to be executed whenever a when's in caluse terminates > normally. But what does "normally" mean in this context? No, please, don't try to make it work like the loops do! By the principle of least astonishment when coming from other languages, that would be a nightmare. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
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