[REBOL] Re: Correct Behaviour? Was False = 2 ????
From: agem:crosswinds at: 2-Jul-2001 20:32
RE: [REBOL] Re: Correct Behaviour? Was False = 2 ????
[ryanc--iesco-dms--com] wrote:
> >
> > Quick & Dirty REBOL User Poll.
> >
snip
> > 2. Should 0, None & False be equivalent
> > for 'PICKing values from a series! and
> > return the FIRST or index 0 value whereas
> > True and 1 would return the SECOND or
> > Index 1 value?
>
> Yes, it should, but I dont imagine it very useful. Just would
> make good consistency and sensibility though, and probably an
> elementary change, so therefore should be implemented. I would
> expect it was intended to work this way, but someone probably
> goofed.
>
pessimistic approach. iam used to yes/no, true/false,..
also [pick["got it"] false] gives none, like if.
lots more elegant.
OTOH, should [to integer! true] throw error?
theres no need to give logic values implicit integer meaning.
we have [pick[1 0] logic] if we need it :-)
> >
> >
> > cheers folks,
> >
> > Mark Dickson
> > --
> --Ryan
>
;-) Volker