Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Parsing comment

From: carl:cybercraft at: 25-Sep-2002 16:53

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