|
|
|
|
|
by lispm
3458 days ago
|
|
Using reader macros for syntax is mostly a mistake - with exceptions. The Lisp tradition generally likes to use reader syntax on the level of s-expressions. If verbose expressions are a problem, normal macros or functions would be sufficient. CL-USER 10 > (defmacro rlambda (fn &rest forms)
(let ((arg-sym (gensym "ARG-")))
`(lambda (,arg-sym)
(,fn ,@forms ,arg-sym))))
RLAMBDA
CL-USER 11 > (macroexpand-1 `(rlambda + 2))
(LAMBDA (#:ARG-804) (+ 2 #:ARG-804))
T
The 'real problem' is that many people have difficulties using and accepting a programmable programming language. |
|
Common Lisp simply can't approach the succinctness and elegance of currying without adding some syntax.
Your resistance is puzzling, btw. You're not having difficulties using and accepting a programmable programming language, are you?