help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to avoid compiler warning `unused lexical variable' for `dolist'


From: Stefan Monnier
Subject: Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?
Date: Thu, 07 Jan 2021 10:38:39 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> The discussion in that bug implies that it won't get fixed. Probably
> we should discourage the three-argument form more strongly, e.g. by
> removing it from the documentation and changing the advertised calling
> convention.

Indeed, I don't like this 3-arg form of `dotimes` and `dolist` because
it tends to "hide" the return value.  But we keep it because there's
something to be said for not being "gratuitously" different from
Common-Lisp.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]