[REBOL] Re: Storing a logical condition
From: brett:codeconscious at: 21-Oct-2003 10:18
> Yep! The winner is the lowly, plain-vanilla function! At least for
> this simple case, the fastest way to defer the evaluation of an
> expression is simply to make that expression the body of a function
> with no parameters!
Thanks for that work Joel. That is something useful to know. I like the way
your result encourages one to use a form that has the least effect on the
- whether you evaluate the condition early eg:
condition-result: dummy = 1
or you evaluate it late using the function:
condition-result: does [dummy = 1]
Your "parent expression" eg.
Need not change (unless of course dummy does). A nice finding.
> I guess sometimes we outsmart ourselves! ;-)
Too often true! :^)