박주현*_*박주현 -1 syntax common-lisp
我创建了一个获取两个字符串参数的函数.该函数只是添加每个字符串长度.下面是一个代码.
(defun add_twostring_length (mystr1 mystr2)
(+ (length mystr1) (length mystr2))
)
Run Code Online (Sandbox Code Playgroud)
当我这样调用add_twostring_length函数时,
(add_twostring_length"cpp""lisp")
输出是正确的.7
但是,当我以逗号的方式调用相同的函数时,
(add_twostring_length"cpp","lisp")
我收到了一条错误消息.
错误:逗号不在反引号内.
[条件类型:READER-ERROR]
我想以这种方式调用函数(add_twostring_length "cpp", "lisp").
代码有什么问题?