On 25-Sep-02, Gabriele Santilli wrote:

> Also,  the  whole idea is that REBOL is dynamic. It couldn't be if
> there was punctuation. I.e.:

>   print a + b

> DOES  NOT  have  a  meaning, unless evaluated under some rules and
> some  context.  When you use syntax to give meaning (as opposed to
> context),  you  are  imposing  artificial limits. Whether they are
> useful  or  not,  depends.  I  think  that  the  point of REBOL is
> simplifying, also by removing some artificial limits.

And we can have...

    print + a b

which is more functional, shall we say, but can we write functions
that behave like operators?  (Or can we write operators, for that
matter.) ...

>> + 1 2
== 3
>> 1 + 2
== 3

>> sum: func [a b][a + b]
>> sum 1 2
== 3
>> 1 sum 2
** Script Error: sum is missing its b argument
** Near: sum 2

Can it be done?

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to