https://stevelosh.com/blog/2018/07/fun-with-macros-if-let/ is an excellent post on implementing if-let and when-let macros.
It discusses the different ways you could expand the code, and ensuring the macro composes with other (Common) Lisp features.
Really useful macro too, I'm a big fan of the elisp equivalent.
miniblog.
Related Posts
Is there a programming equivalent of the strawberry problem, i.e. a specific coding task that LLMs are consistently bad at?
I've been compilation buffers in Emacs recently and I really appreciate the error and warning counts shown in the modeline.
I've added the equivalent feature to deadgrep: it shows result counts! Really useful when you're doing big refactorings.
I'm amused (and kinda surprised) to learn that shells have their own equivalent of blink tags, a blink escape code! https://stackoverflow.com/questions/17439482/how-to-make-a-text-blink-in-shell-script
Seems equally annoying, I can't see a good use for it.
