[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another pcase-lambda
From: |
Stefan Monnier |
Subject: |
Re: Another pcase-lambda |
Date: |
Sat, 23 Sep 2017 10:29:53 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> > BTW, what I sometimes do miss is `pcase-defun'.
>> Was that a thing that existed?
> No, it never existed, but maybe it should? pcase argument matching is
> not only useful for anonymous functions. I often wanted it for named
> helper functions and had to `defalias' to a `pcase-lambda'.
There a "case" to be made that all variable bindings should support the
pcase syntax (i.e. dolist should be pcase-dolist, let should be
pcase-let, ...).
Stefan