|
From: | Stefan Monnier |
Subject: | Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'? |
Date: | Sun, 10 Jan 2021 09:52:59 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I see that Emacs Lisp does not have a way to distinguish the two cases. > > In Common Lisp, (declare (ignore i)) means ignore unused variable i. If > i is used, I get a warning. ELisp's equivalent is to use a variable name with a leading underscore such as `_i` (or just `_`). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |