[alexandria-devel] [PATCH] lazy-evaluate the default value in ENSURE-GETHASH

Hans Hübner hans.huebner at gmail.com
Thu Dec 22 10:32:24 UTC 2011


On Wed, Dec 21, 2011 at 7:30 PM, Ryan Davis <ryan at acceleration.net> wrote:
> This patch (created using git format-patch origin/master) converts
> ENSURE-GETHASH to a macro that only evaluates the default if we get to
> the setf branch. Has a check to create and call a lambda if the default
> value looks complicated (using CONSTANTP).
[...]
> Thoughts?

I'd like to see this in alexandria, as it is a very common idiom for me.

-Hans




More information about the alexandria-devel mailing list