[REBOL] Re: The complete Rebol named argument passing
From: g:santilli:tiscalinet:it at: 26-Feb-2004 23:40
Hi Romano,
On Thursday, February 26, 2004, 6:56:08 PM, you wrote:
RPT> omitting arguments for false refinements, else it should become something
RPT> like:
RPT> apply :find [find a b false false false false false false false true 3]
Do you think you would use APPLY that way? I wouldn't. I would use
it this way, instead:
my-find: func [
series value
/part range /only /case /any
/with wild /skip size /match
/tail /last /reverse
] [
; something useful ...
apply :find [
series value part range only case any
with wild skip size match tail last reverse
]
; something useful ...
]
Now, if you consider that that block can be constructed
automatically, you see that is not so much of a problem.
Also, if you have a native APPLY like the one I described, you
could write a mezzanine function like the one you described;
however, with your APPLY, you'd have trouble writing a function
like the above...
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/