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: 8-Jun-2002 1:50

On 08-Jun-02, Robert M. Muench wrote:
>> -----Original Message----- From: [rebol-bounce--rebol--com] >> [mailto:[rebol-bounce--rebol--com]]On Behalf Of Paul Tretter >> Sent: Thursday, June 06, 2002 11:13 PM To: [rebol-list--rebol--com] >> Subject: [REBOL] Re: percent! - new datatype request >> The question always comes to mind - do we really need one? After >> all, why add more code to the binary when we already can handle >> percents with a few bits of code. I think only very complex useful >> functions should be added to the binary. > Hi, I can second this. If RT can include the datatype with some byte > increase than it's worth but if we get 5KB more... I wouldn't add > it. Robert
I think we need it, but not so much because it'd be easier (perhaps) for programming, but because it's more descriptive. For instance, we know what this means... prompt-payment-discount: $5.25 but does this... prompt-payment-discount: 5.25 mean money or percent? If it was this though... prompt-payment-discount: 5.25% we would know. Why we're on the subject of new datatypes, what others are needed? Degrees (and minutes) perhaps? -- Carl Read