emacs-devel
[Top][All Lists]
Advanced

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

Re: Test your ELisp knowledge


From: Joost Kremers
Subject: Re: Test your ELisp knowledge
Date: Fri, 09 Feb 2024 13:10:14 +0100
User-agent: mu4e 1.10.7; emacs 29.2

On Fri, Feb 09 2024, tomas@tuxteam.de wrote:
> [[PGP Signed Part:Undecided]]
> On Fri, Feb 09, 2024 at 11:52:20AM +0100, Manuel Giraud via Emacs development
> discussions. wrote:
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 
>> > OK,
>> >
>> > Here's a test for you: without trying to run it, guess what error will
>> > be signaled when you do:
>> >
>> >     M-: (their-fun (/ my-x 0)) RET
>> 
>> I'd say: my-x not defined.
>
> I'd side with Yuri Khan and Po Lu: what if `their-fun' was a macro call,
> after all?

I initially thought, "well duh, their-fun is not defined", but then I figured,
if Stefan Monnier is asking, it's probably not so obvious, so I went with the
division-by-zero instead...

Which only goes to show that I never thought about the function vs. macro
thingie... :D


-- 
Joost Kremers
Life has its moments



reply via email to

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