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

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

Re: [External] : Re: Why is defun not executed during load-file?


From: Emanuel Berg
Subject: Re: [External] : Re: Why is defun not executed during load-file?
Date: Mon, 07 Jun 2021 04:19:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> Hm ... interesting. Yeah, maybe we should start do that more?
>
> Not really: it's better to avoid macros when you can.
> But it's better to use macros than to use `eval`.

Ah, that's what I thought all along but it sounded cool when
Mr Adams said it wasn't evaluated anymore but reduced (?) ...

>> What kind of things or problems could or should you solve
>> with macros?
>
> Whenever you find yourself forced to use `eval` ?

OK so the hierarchy is:

1. `defun' (best)
2. `defmacro' (at least better than `eval')
3. eval (worse)

That what you meant?

Can one summarize in human language without references to Lisp
perhaps when macros are used? I used them so seldom I don't
know why people use them, even. I guess I did so good now I'm
ignorant instead.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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