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

[REBOL] Re: percent! - new datatype request

From: carl:cybercraft at: 13-Jun-2002 9:52

On 13-Jun-02, Gregg Irwin wrote:
> Joel, Carl, et al > The argument for percent! being useful in VID makes me > think......ouch! :) > Quick thoughts: > 1) VID is a dialect, so adding support for ##% syntax isn't the same > as adding a percent! datatype.
Hi Gregg, Short of puting the percent value in a string, how do you write a dialect to get around the following? ...
>> [10%]
** Syntax Error: Invalid integer -- 10% ** Near: (line 1) [10%]
> I don't have a problem extending > VID's syntax in that way except that... > 2) Adding that ability opens up a whole can of worms related to > pair! values which don't support even decimal components at this > time, only integers.
Perhaps because they're saving decimals for percentages and didn't want a whole heap of scripts out there already using them in pairs when it's introduced? ie, so it /won't/ open a can of worms when it's introduced. -- Carl Read