|
From: | Emanuel Berg |
Subject: | Re: Understanding the "let" construct and the setting of variables |
Date: | Fri, 18 Dec 2020 18:14:04 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
steve-humphreys wrote: > Let's introspect two questions. > > 1. In what simple circumstances would one use a "setq" in > the body of a let? When one wants to change a global variable that already exists outside of the function. Try to avoid this situation altogether but if it is there, it is there I guess, and sure, you can set it with `setq' to whatever you want :) > 2. What simple option does one have that is more > advantageous than using a "setq"? Use `let' and/or `let*' for everything else... -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |