2 ms·
I'd drop the weirdly named operators like cdr-safe, or change the naming at least. I get that if you're manually writing code to match a list structure, you do
by kazinator 3y ago
I'd drop the weirdly named operators like cdr-safe, or change the naming at least.
I get that if you're manually writing code to match a list structure, you do it in a "cdr safe" way. E.g. if we are matching a two element object, we can't assume that it has an accessible cadr.
It's the job of pattern matching to do the shape checks so as not to misuse the object being matched; no aspect of that needs to be visible, including naming like "cdr safe".