Lisp string formatting with named parameters
Is there a way in Lisp to format a string using named parameters? Perhaps something with association lists like (format t "All for ~(who)a and ~(who)a for all!~%" ((who . "one"))) in order to print "All for one and one for all" . Similar to this python question , or this scala one , or even c++ , but in Lisp. If this functionality isn't in the language, does anyone have any cool functions or macros that could accomplish the same thing? Use CL-INTERPOL . (cl-interpol:enable-interpol-syntax) String interpolation For simple cases, you don't need FORMAT : (lambda (who) #?"All for $(who) and $(who)