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

[REBOL] Enhancement Request - Range! datatype Re:(6)

From: bhandley:zip:au at: 21-Aug-2000 17:25

> how about? > 1to10 > -1to-10 > .1to.10 > > Is using n"to"n that different from using n"x"n for pairs? It is
> obvious that it is a range, ( in English at least). > > Other ideas?
to could be exclusive and "thru" inclusive like parse. Don't know what you do about the range start though. .. is quite concise (if barely legible on my monitor ;) ). So if we were lucky enough to get some range math use a .. b for an inclusive range as suggested before. a <.. b for an exclusive start point and inclusive end point a ..> b you can guess a <..> b a range that does not include the end points Brett.