[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Understanding the "let" construct and the setting of variables
From: |
Emanuel Berg |
Subject: |
Re: Understanding the "let" construct and the setting of variables |
Date: |
Fri, 18 Dec 2020 21:48:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Joost Kremers wrote:
> Not sure I understand the question. With `setq`, two things
> can happen: either there is already a binding for the
> variable, in which case `setq` updates the binding (assigns
> a new value to the existing variable), or there is no such
> binding (i.e., the variable doesn't exist), and in that case
> the variable is created.
That's right, so use `setq' to create and manipulate global
variables; inside functions, use `let/let*'.
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- Re: Understanding the "let" construct and the setting of variables, (continued)
- Re: Understanding the "let" construct and the setting of variables, Joost Kremers, 2020/12/17
- Re: Understanding the "let" construct and the setting of variables, steve-humphreys, 2020/12/17
- Re: Understanding the "let" construct and the setting of variables, Joost Kremers, 2020/12/17
- Re: Understanding the "let" construct and the setting of variables,
Emanuel Berg <=
- Re: Understanding the "let" construct and the setting of variables, Emanuel Berg, 2020/12/18
- Re: Understanding the "let" construct and the setting of variables, Jean Louis, 2020/12/18
- Re: Understanding the "let" construct and the setting of variables, tomas, 2020/12/18
- Re: Understanding the "let" construct and the setting of variables, Emanuel Berg, 2020/12/18
Re: Understanding the "let" construct and the setting of variables, steve-humphreys, 2020/12/16
- Re: Understanding the "let" construct and the setting of variables, Joost Kremers, 2020/12/17
- RE: Understanding the "let" construct and the setting of variables, Drew Adams, 2020/12/17
- Re: RE: Understanding the "let" construct and the setting of variables, steve-humphreys, 2020/12/17
- RE: RE: Understanding the "let" construct and the setting of variables, Drew Adams, 2020/12/17
- Re: Understanding the "let" construct and the setting of variables, Michael Heerdegen, 2020/12/17