[plt-scheme] Are superfluous expressions optimized away?
They don't. But don't take my word for it. Do some timing tests.
Robby
On 2/20/07, Derick Eddington <derick.eddington at gmail.com> wrote:
> Are superfluous expressions, like say '() or (void) when not in tail- or
> binding- or pass-value-position or any other value-is-used position,
> optimized away (maybe only when compiled to byte-code)? I'm wondering
> if conditional compilation macros like (debug expr ...) which expand to
> '() or (void) would incur zero performance penalty? If not, the
> performance cost is probably very negligible?
>
> --
> : Derick
> ----------------------------------------------------------------
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>