[REBOL] Re: Parsing comment
From: ingo:2b1 at: 24-Sep-2002 6:06
Hi Jason,
this comment is not directed at the rebol parse word, but at the
internal parser which parses a script to execute it.
So what he weans is the following:
fee fie foe fum
may be a valid line in a Rebol script. But you don't know from first
view what happens here: are these 4 functions, run one after another? Is
it one function with 3 arguments? Is it a function with 2 arguments,
where the second argument is first calculated by another function with
one argument? Or what? Only the parser knows at execution time, or the
one who knows the words by heart.
In Python the line might look like:
fee( fie foe( fum))
where you can instantly see, that fee is a function of 2 arguments, and
where the second argument is computed by foe, a function with one
argument.
Now in Rebol, due to it's LISPy nature, you could write it like:
(fee fie (foe fum))
to give you the same visual feedback, but you aren't forced to use the
parentheses, so most people don't most of the time, except when the
expression becomes too complicated.
I hope that sheds a little light on the subject.
Kind regards,
Ingo
Am Mon, 2002-09-23 um 06.03 schrieb Jason Cunliffe: