[plt-scheme] What is your take on match-lambda?

From: Alex Shinn (alexshinn at gmail.com)
Date: Tue Feb 26 03:33:15 EST 2008

>>>>> "Noel" == Noel Welsh <noelwelsh at gmail.com> writes:

    Noel> Still sub-optimal, 'cause you then have to match a
    Noel> list pattern and presumably create a vararg
    Noel> function.

You could optimize it to match each parameter individually
and not create a vararg function if all patterns take the
same number of arguments (if they don't you'd need a vararg
function anyway).

-- 
Alex


Posted on the users mailing list.