Diferential behaviour of positives and negatives ranges as subindex of string or arrays.
|Target version:||next minor|
The expression '[a..b]' when applied to a string or to an array return the slice from the string/array from a to b.
for example [0..3] returns the first four letters from a string
the slice [-4..-1] returns the last four letters from a string
but if the length of the original string is smaller than the slice the results are conceptually very different depending on positive or negative indexes:
I would like a simetric behaviour in the last case returning the whole word (and not nil). It would be more natural to have the same behaviour when exeding by left of by right of the string/array.
Does Anbody agree or disagree whith my position?