[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [PATCH 5.005_63] Open-ended slices: (a..z)[23..]
On Mon, Jan 24, 2000 at 10:13:39PM -0800, Gurusamy Sarathy wrote:
> Ranges are simply ordinary list expressions currently. If we start
> down the path of giving ranges context sensitive magic, we should
> go a little farther for completeness. I'd simply use negative indices
> (conceptual -0 included) to refer to things at the end. (We'll assume
> absense of a number at the beginning stands for 0, and absense of a
> number at the end stands for -0.)
Why -0 ? currently an array index of -1 gives the last element, so
why would ranges be different
Graham.
- References to:
-
scozens@pwj.co.jp
Gurusamy Sarathy <gsar@ActiveState.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]