3 ms·
Interesting article. Thanks. Noticed a lot of use of setq... Wondering if this is simply the author's muscle memory or if there is a speed or reduced complexit
by kreelman 4y ago
Interesting article. Thanks.
Noticed a lot of use of setq... Wondering if this is simply the author's muscle memory or if there is a speed or reduced complexity advantage compared to using setf.
I think this kind of demonstrates the amazing plasticity of Lispy environments. There are multiple ways of doing something as relatively straightforward as assignment, all within the one version of the environment (I know, other langs can do this too, but still neat).
I'm gradually getting my head around Emacs lisp. Lots of setq there.
- moonchild 4y agoThere is no speed advantage. Some argue that you should always use setf, and that setq leaks an unfortunate implementation detail. Others argue that you should use setq whenever possible, so that use of setf clearly flags the fact that something more complex is going on.