[REBOL] Re: Tuples versus Deciamls
From: greggirwin:mindspring at: 12-Jan-2004 21:25
Hi Behrang,
BS> In the section about the tuples in quickstart it's not
BS> stated that a tuple must at least have 3 elements.
And they can have up to 10 elements.
BS> So I said to myself "there should be some ambiguity
BS> between decimals and tuples" although I was sure that
BS> I'm wrong.
Lexical space is very tight in REBOL, so once you get used to the
rules that apply to the different datatypes you'll be in good shape.
There aren't too many confusing things, but there are a few. One of
the biggest things that you can do to confuse yourself (and others) is
is coerce values to other types. Note, that I'm not saying it's a bad
thing, or that you should never do it but, when you do, you can end up
with values that don't match REBOL's lexical rules. e.g.
>> x: to issue! "abc def"
== #abc
>> print mold x
#abc
>> last x
== #"f"
Here, coercing a string containing a space to an issue! works
internally, but PRINT and the console output don't show it.
-- Gregg