Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Clojure 中,我可以让第二个符号引用一个函数。
(defn sq [x] (* x x)) (sq 7)
-> 49
(def square sq) (square 7)
在 Emacs-Lisp 中,我只知道
(defun square (x) (sq x))
有没有在精神上更接近第一个的解决方案?
(defun sq (x) (* x x)) (defalias 'square 'sq)