Afaik it's primarily to make it possible to remove an element i with arr[..i-1]+arr[i+1..] without having to bother with special cases for the first (and last) elements.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-03-05 23:30: Subject: Re: negative indices in array ranges
which code would it break?
any range ending in a negative value create an empty array, negative values at the beginning are interpreted as 0.
i can't see a situation where such an interpretation would make sense.
greetings, martin.
/ Brevbäraren