emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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