Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Correct Behaviour? Was False = 2 ????

From: rryost:home at: 2-Jul-2001 14:05

I'm in favor of retaining REBOL's present behavior in re starting a series with index 1 for the first element. I'm an old Forther, and first preferred starting with 0, but at this point in REBOL's development, too many words would have to be redefined to make the switch. Keep starting at 1. As to how Pick should act with a logic argument vs with a numeric argument, I see no need for "consistency". Logic elements have only two values, True and False. A user should never assume how a function like Pick will act with a logic type argument from how it acts with a numeric type argument. In my opinion, numeric values of 1, 0, -1, 2, etc should _never_ be generally associated with the logic values True and False. It's ok for a script to make such an association ("locally") in a function, at the whim of the person writing the script, and defining the function. Russell [rryost--home--com]