[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use closures in hashcash.el
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] Use closures in hashcash.el |
Date: |
Tue, 12 Mar 2019 16:37:30 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> hashcash.el was switched over to lexical scope in da94ea9, but it still
> uses an old workaround of dynamically constructing lambda expression
> "closures" using backquote. The following patch changes these into
> proper closures.
Thanks, installed with the change below:
> - (set-process-filter process `(lambda (process output)
> - (funcall ,callback process output))))
> + (set-process-filter process (lambda (process output)
> + (funcall callback process output))))
Actually, this lambda expression is just a roundabout way to say
`callback` (by η-reduction).
Stefan