我需要一个变量的引用值。
举个例子,假设我们有变量qwe
和asd
:
(setq qwe '(1 2 3)) ;; qwe is set to (1 2 3)
(setq asd ''(1 2 3)) ;; asd is set to '(1 2 3)
我的问题是:如何通过使用
qwe
来获得与asd
相同的值?我是这样做的:
(setq asd `(quote ,qwe))
;; Now asd is '(1 2 3)
但是对我来说,它看起来又丑又不好。如果没有更好的方法,我会感到惊讶。
(list 'quote qwe)
,在我看来,它看起来更好,更易于理解。 - qwe