Perhaps, but what would that syntax be? '-' has the advantage that e.g.
foo = foo[..-2]
would do what most people intuitively think it does. Otoh one could easily consider it bogus that the above isn't the same as:
int n = -2; foo = foo[..n];
/ Martin Stjernholm, Roxen IS
Previous text:
2003-05-15 17:14: Subject: Negative ranges revisited
I think it would be less confusing to use something different from "-" to mean "count from the end". Besides that, it's an interesting idea.
/ Niels Möller (med röd bil)