|
From: | Jean Louis |
Subject: | Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'? |
Date: | Fri, 8 Jan 2021 04:03:25 +0300 |
User-agent: | Mutt/2.0 (3d08634) (2020-11-07) |
* Stefan Monnier <monnier@iro.umontreal.ca> [2021-01-07 18:41]: > > 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. I do not see how it hides when I know how it is used from Common Lisp. So I look there in third value and I know which one will be returned.
[Prev in Thread] | Current Thread | [Next in Thread] |