Hacker News new | ask | show | jobs
by kazinator 3240 days ago
Anyway, you want string interpolation for the former example anyway:

  1> (let ((name "Alice") (place "The Palace"))
       `Hello @name, welcome to @place!`)
  "Hello Alice, welcome to The Palace!"
string interpolation is compatible with Lisp designs; it is self-contained and so doesn't "disturb" the surrounding syntax with issues of precedence and associativity. The above example is from TXR Lisp which has this built in. For Common Lisp, there is the cl-interpol and other packages, and other dialects have their own solutions.
1 comments

And it's pretty trivial to roll your own.