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

[REBOL] Re: language shoot-out :-)

From: joel:neely:fedex at: 5-Nov-2002 14:39

Hi, Tom, Just a suggestion... Tom Conlin wrote:
> Rebol[] > c: 0 > ack: func [ x[integer!] y[integer!] ][ > print c: c + 1 > either zero? x > [y + 1] > [either zero? y > [ack (x - 1) 1]
[ack x - 1 1]
> [ack (x - 1) ack x (y - 1)]
[ack x - 1 ack a y - 1]
> ] > > ] >
Parens take time. In the above cases, they are not needed for control of precedence; the function will be faster without them (about 3% by my QAD tests). -jn- -- ---------------------------------------------------------------------- Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446