Common Lisp中的自执行Lambda表达式

jcu*_*bic 0 lisp lambda common-lisp

我认为这是在Common LISP中编写自执行lambda表达式的唯一方法:

(funcall #'(lambda (x) (format t "~S" x)) 10)
Run Code Online (Sandbox Code Playgroud)

但似乎在GNU / Linux上的CLISP中也可以使用:

((lambda (x) (format t "~S" x)) 10)
Run Code Online (Sandbox Code Playgroud)

这更像您在Scheme中执行的操作。根据Common LISP规范,这是否正确?其他CL实施是否也以这种方式工作。

Rai*_*wig 6

这是标准的Common Lisp语法。

拉姆达形式conses之外的形式