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

[REBOL] Re: Rebol Enhancement Proposal - Telephone numbers

From: ryanc:iesco-dms at: 20-Apr-2001 11:23

Hmmm... Even though: * It would make parse operations a tiny bit easier. * It would help in the exchange of data There are a few more negs: * feature bloat * You dont add telephone numbers, or perform other operations with them. * It can written simply 64'6'8354110 or as a robust dialect [64 6 8354110 *9 wait 5 "password" #] * So many different standards and conventions I am not strictly opposed to a telephone number type, as they are frequently used and exchanged. I suppose you can reliably divide telephone numbers into two parts. The always used local part, and the optional dialed long distance part that changes with location. Example: [ 64'6 8354110 ] ; out of local area [ none 8354110 ] ; within local area Note that in some areas pauses must be inserted into a number. For instance I have heard of people in the US that have to wait 3 seconds just to get a dialtone--could be worse in other countries. Modems use #"," to represent a pause. #"*" and #"#" are also a good idea to support. The characters, especially commas, would complicate searches. Its possible the url type could be used? Hmmm...
>> Andrew: open/lines phone://23-234-234-3533 >> first Andrew
== "Hello?"
>> insert Andrew "How many REBOL programmers does it take to change a light
>> first Andrew
== "I dont know?"
>> insert Andrew "None. Thats a hardware job!" >> close Andrew
--Ryan Andrew Martin wrote:
> How about adding the telephone number to Rebol? For example: > Telephone: +64-6-8354110 > >> type? Telephone > == telephone! > It would behave a lot like the issue! datatype, but have telephone! > datatype. Refinements could include: > >> Telephone/International > == +64 > >> Telephone/National > == 6 > >> Telephone/Local > == 8354110 > The rebol parser rule could be: > "+" some Digit "-" some Digit "-" some Digit > > The only trouble I have at the moment is determining if is this pattern > would be suitable for other countries. While this works for NZ, it might not > work for other nations. Any one know if this wouldn't work for them? > > Andrew Martin > ICQ: 26227169 > -><- > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst 707-468-5400 I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. -Einstein