Case Range Statement ..

Walter Bright newshound1 at digitalmars.com
Thu Jul 9 12:56:39 PDT 2009


Bill Baxter wrote:
> Not every one of those has every feature you could imagine.  But nice
> things about Python's slices include:
> * optional step size,
> * step size can be negative.
> * nice compact notation
> * And the a:b syntax maps to a slice object so that you can manipulate
> them and pass them around.

Having a step size requires, of course, a third operand. This doesn't 
work too well with infix operator notation (the only 3 operand infix 
operator is ?:).

Having such a third operand, however, should mesh quite well with 
Andrei's range library construct.



More information about the Digitalmars-d mailing list