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

[REBOL] Re: Expression evaluator (an example of parsing blocks)

From: larry:ecotope at: 21-Oct-2000 15:42

Hi Russell Thanks for the corrections. Silly me, I fell into the "negate" trap. I agree that it would be preferable for REBOL to implement the prefix "-" as a binary operator, so that it worked like "+", etc. And have the unary "-" be just no space before a number. IIRC it used to be this way in Core 2.1 or so. I think there was also some talk at the time of making "+", "*", etc. work only as infix operators with the prefix versions being "add", multiply , etc. I still wonder if one can always avoid parens with use of both perfix and infix forms. Cheers -Larry