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

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

bug#29866: 27.0.50; cl-loop: Calculate the array length just once


From: Tino Calancha
Subject: bug#29866: 27.0.50; cl-loop: Calculate the array length just once
Date: Mon, 08 Jan 2018 00:39:28 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> X-Debbugs-CC: monnier@iro.umontreal.ca
>
> Thanks.
>
>> It looks sensible to calculate the array length just once,
>> instead of recalculate it on each iteration:
>
> I tend to agree, but I don't know very much about the intended semantics
> of Common Lisp's `loop` macro, nor about cl-loop's implementation (tho
> I admit I did mess with it without being really sure what I was doing).
Ok, let's do it.
Pushed to master branch as commit 'cl-loop: Calculate the array length just 
once'
(bfca19e475c01f13dbacc7f8b7bb1aecf46cb7e4)





reply via email to

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