[REBOL] Re: percent! - new datatype request
From: henrik:webz:dk at: 7-Jun-2002 16:48
Citat Carl Read <[carl--cybercraft--co--nz]>:
> 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?
We could go on with every single SI unit in existance?
It would be cool if Rebol knew that the unit of voltage divided with amps is
ohm. This way, certain datatypes could get much more than just descriptive, but
it would probably be too much bloat to implement that. Stupid idea, anyway. :-)
Regards,
Henrik Mikael Kristensen