Ted Ashton wrote:
> Thus it was written in the epistle of Damian Conway,
> > 
> > But a switch is not a loop.
> > Within a loop the logic is:
> > 
> >     next -> try next case
> >     last -> this was the last case
> 
> As it has already caused a little confusion, could we go with another word
> instead of next?  'fallthrough' seems a bit much to type.  How about 'proceed',
> 'fall', 'exinde', 'porro', or (my favorite at the moment) 'pergo' ;-).

But that's not what "fall through" means.  At least not to most people.

To "fall through" is exemplified by C's switch/case, where, unless break
is said explicitly, execution of one case falls through into the next one.

As has been said, this is not good.  At least not for a default.

   last ~= break
   next ~= continue (not in switch, since it's not a loop)


Hey, doesn't while need an otherwise?

  while ( foo ) {
  }
  otherwise {
    # do this if the while predicate was never true.
  }

-- 
John Porter

Reply via email to