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

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

Re: Closures - do you understand them well?


From: Stefan Monnier
Subject: Re: Closures - do you understand them well?
Date: Thu, 08 Dec 2022 17:00:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> In ELisp, both `dotimes` and `dolist` create a new binding for `i` at
>> each iteration of the loop.
> This is probably what most people expect from a loop.

I find this behavior cleaner, indeed (which is why I changed `dotimes`
and `dolist` to provide that behavior :-).

> `cl-loop' doesn't.

Indeed, when I looked at it, I decided it was too much trouble figuring
out how to change `cl-loop` to provide that behavior :-(
IMO `cl-loop` is too complex for its own good.


        Stefan




reply via email to

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