[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding.
From: |
Stefan Monnier |
Subject: |
Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding. |
Date: |
Wed, 29 Apr 2020 00:21:29 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> But AFAIR scheme also has RESULT in its `do', so people coming from
> other Lisps might miss it.
This one is quite different because it has access to the final value
of all the loop variables. So while it is occasionally possible to move
the "RESULT" expression to after the `do` loop, it's often not an option
because it needs to access some of the loop variables.
For `dolist` this can *never* happen because the only loop variable is
known to always contain nil at that point.
For `dotimes` this can very occasionally happen, tho you can always work
around it with a simple rewrite.
Stefan
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., (continued)
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Stefan Monnier, 2020/04/20
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Michael Heerdegen, 2020/04/27
- Strange compiler warning in `dotimes' (was: master 8f0f851: * lisp/autoarg.el: Use lexical binding.), Michael Heerdegen, 2020/04/27
- RE: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Drew Adams, 2020/04/28
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Michael Heerdegen, 2020/04/28
- RE: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Drew Adams, 2020/04/28
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Michael Heerdegen, 2020/04/28
- RE: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Drew Adams, 2020/04/28
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Vladimir Sedach, 2020/04/28
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Michael Heerdegen, 2020/04/29
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding.,
Stefan Monnier <=
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Vladimir Sedach, 2020/04/29
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Stefan Monnier, 2020/04/29
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Noam Postavsky, 2020/04/29
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Richard Stallman, 2020/04/29
- Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding., Stefan Monnier, 2020/04/28