[REBOL] Re: Core 2.5.5 Beta Versions
From: lmecir:mbox:vol:cz at: 20-Feb-2003 18:51
> >>> real-index? b
> LM> == 7
> I would agree in principle, but what should LENGTH? return then?
It should return either:
index? tail :b - real-index? :b
max 0 index? tail :b - real-index? :b
Both are acceptable for me. This is a different story, than INDEX? manipulation.
> >>> peek b -7
> LM> ** User Error: Out of range
> LM> ** Near: peek b -7
> Personally I prefer it returning NONE, but probably it's just a
> matter of taste.
If there were a possibility like:
peek/default b -7 [none] ; == none
it might have the advantages of both.