At 11:58 AM 8/1/00 -0500, Brust, Corwin wrote:
>Would simple do { } blocks then also be cantidates for becoming Code Blocks?

I would hope not--I've used them in code specifically because they are 
*not* control blocks, yet still get you a new level of scope.

What I'd rather see is the concept of the 'looped statement'--i.e. any 
single statement that has a loop modifier on it could be lasted. So this:

last while 1;

would be a noop, but people doing Evil Things with lists and whatnot could 
still last out, like so:

   (foo(), bar() || die, baz() || last) while (xyzzy());

which would exit out of the looping statement as soon as baz() returned false.

You could, I suppose, separate out the lexical scoping properties of a 
block from the loop control properties, so we have non-looping blocks that 
define scope, or looping blocks that don't. (I'd propose characters, but I 
passed on picking up the Unicode spec over lunch (didn't want to throw my 
back out... ;))

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to