I like the range idea but would suggest the use of a different operator than
'-' - possibly ',,' which is used in several other languages?


Thanks,

Garold (Gary) L. Johnson
DYNAMIC Alternatives
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 19, 2000 2:24 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [REBOL] Enhancement Request - Range! datatype

Currently there's a XY datatype in Rebol/View. Eg: 100x123 for 100 X, 123 Y.

It would be nice to have a range, describing two endpoints. For example,
Dates:
        12/Jan/2000-24/Dec/2000
    Integers:
        1-10
    Time:
        09:00-17:00
    Money:
        $10.00-$56.00

These would have refinements like:
        /Start or /Begin
        /End or /Finish
        /First
        /Last
    to access the first or last part of the range.

'first on:
        12/Jan/2000-24/Dec/2000
    like:
        first 12/Jan/2000-24/Dec/2000
    would produce:
        12/Jan/2000
    and 'last on
        12/Jan/2000-24/Dec/2000
    like:
        last 12/Jan/2000-24/Dec/2000
    would produce:
        24/Dec/2000

Operations like:
        if now in 12/Jan/2000-24/Dec/2000 [print "mostly in this year!]
    would be nice as well.

This has been CC-ed to [EMAIL PROTECTED]

Any comments?

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-

Reply via email to