Skip to content

Comment on Quote-unquote "macros"parent

Comments

this is a very funny way to do this, thanks! i was thinking of using the (deprecated but still widely supported(?)) `caller` property but was sad that it wouldn't admit multiple memoization dictionaries per calling function (also wouldn't work at the top-level but, like, who cares). but using the stack trace is great.

i mean, you know, this isn't really... this isn't really a thing that you would ever want to do, but i am glad that life found a way

it might be; you'd have to benchmark it to be sure

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.