3 ms·
Looking at the pcase structure with some basic emacs-lisp experience (OK, slightly better than basic, but I'm still sloppy), I find it really easy to grock havi
by SuperNinKenDo 3y ago
Looking at the pcase structure with some basic emacs-lisp experience (OK, slightly better than basic, but I'm still sloppy), I find it really easy to grock having never seen it before.
They mention repurposing the comma and backtick to serve functions that they don't elsewhere, which I agree is probably worth changing, but otherwise I can't understand at all what the issue is. And reading about the problems with cond*, it seems worse to me in every way. Not terrible, but certainly worse.
I don't really understand why Stallman considers cond* better even by the standards of his own arguments. Very odd, I feel I must be missing something.
Maybe if I tried to use it the issues would become evident.
- kazinator 3y agoYou can't employ backquote in pattern matching syntax usefully without giving semantics it doesn't have elsewhere. If `(a b ,c) means match a list in which a and b are literals, and the third item is unified with our variable c, then backquote is doing something it doesn't do elsewhere (which is conceptually related to what it does elsewhere).