[REBOL] Re: Newbie expression question
From: carl:cybercraft at: 24-Dec-2003 22:39
On 12-Oct-03, [SunandaDH--aol--com] wrote:
> Kai:
>> if length? tlist/data > 1000
>>
>> Can someone give me a pointer as to what i need to do?
>>
> REBOL's strict no-precedence interpretation causes problems as the
> line is read as:
> if length? (tlist/data > 1000)
> and that isn't valid.
> Try these:
> if (length? tlist/data) > 1000
> or
> if 1000 <= length? tlist/data
> (I always go for the (...) solution as I can't be bothered with
> reversing boolean operations.
For speed reasons though, avoiding parens is a good thing if you can.
(When we're not talking about developement speed, that is;)
> Maybe this is a good starting point
> for another of Gregg's idiom discussions),
> Sunanda
--
Carl Read