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

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

Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql'


From: Stefan Monnier
Subject: Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql'
Date: Thu, 29 Dec 2022 09:47:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> but then `benchmark` worked only first time, second time it gave
>> error.
>
> Read benchmark's doc string carefully :-)
>
> Benchmark is a /function/, so its argument is evaluated first. By
> the Rule of Lisp [1], args are evaluated first...
>
>   (benchmark (cons "Word" my-list)) =>
>   (benchmark ("Word")) => ; since list is empty

Indeed, it's a terrible interface, since it forces the use of quoted
code, yuck!


        Stefan




reply via email to

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