I am doing a tutorial on emacs lisp and it talks about the function let.
let
;; You can bind a value to a local variable with `let': (let ((local-name "you")) (switch-to-buffer-other-window "*test*") (erase-buffer) (hello local-name) (other-window 1))
I do not understand the role of double brackets after letin the first line. What do they do that one set will not do? Running this section without them, I get an error message: Wrong type argument: listp, "you".
Wrong type argument: listp, "you"
Here you can enter several variables. Outer parentheses restrict the list of bindings, and inner parentheses are an individual form of binding.
(let ((foo "one") (bar "two")) (frobnicate foo bar))
There are no "double parsers".
, (let ((foo...)...)), ((, let? , :
(let ((foo...)...))
((
(let (a b c) (setq a 42)...)
IOW, let . . sexp a, b c, , let, .
a
b
c
, , (a):
(let ((a 42) b) ... (setq b ...) ...)
gnu.org, , let, .
varlist , , let :(let ((variable value) (variable value) …) body…)
varlist , , let :
(let ((variable value) (variable value) …) body…)
let : (let (<binding-form> ...) <body>).
(let (<binding-form> ...) <body>)
<symbol> ( , nil) (<symbol> <value>) ( let).
<symbol>
nil
(<symbol> <value>)
let let* , . let :
let*
(let ((a 17) (b 42)) (let ((a b) ; Inner LET (b a)) (list a b)))
let* . , let, (let* (<form1> <form2>...) (let (<form1>) (let (<form2>) ...))
(let* (<form1> <form2>...)
(let (<form1>) (let (<form2>) ...))
Source: https://habr.com/ru/post/1609141/More articles:Testing special JavaScript characters - javascriptHow to prepare raspberry Pi with Raspbian so that I can cross-compile Qt5 programs from a Linux host? - cross-platformHow to return more than one type from a function? - c ++Чтение символов UTF8 с использованием innerHTML возвращает 0xfffd для всех символов - javascriptHow can I create a modern cross-compilation tool for raspberries Pi 1? - gccWhy does Bootstrap define @ brand-primary with darken ()? - cssType aliases for constraints do not use the same variable binding behavior as contexts - haskellUsing pillows in docker - dockerHow to remove this single point of failure from application architecture? - architecturehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1609147/ipython-autoreload-gives-error-for-repeated-calls-to-python2-super&usg=ALkJrhjNMrZrSIIoT3_HhB_ffxlLHnYqcQAll Articles