[REBOL] Evaluator of expressions with 'where clause
From: jan:skibinski:sympatico:ca at: 21-Oct-2002 18:03
Hi all,
I have posted a new %eval.r script to the library.
Excerpt from scipt documentation:
The functional language Haskell, my (other :-)) prefered
computer language provides two basic language structures
for evaluation of expressions with local assignments: the
'let clause and the 'where clause. I am quite fond of the
latter kind, since it let me work the way I like: starting
with a main concept and deferring the details to the 'where
clause. For example, this is a simple expression with
the 'where clause:
x * y + z where
x = 12 * sin y
y = 3 * z
z = 7
......
and in Rebol:
eval [x * y + z] [
x: 12 * sin y
y: 3 * z
z: 7]
....
I had to change the name from 'where to 'eval for readability.
Rebol does not provide for user defined infix operations, does it?
[No, 'eval is not exactly the same as the 'use function.]
Jan