whens and strs

Created: Mar 13, 2021Published: Mar 28, 2023Last modified: Apr 05, 2023
No tags
Word count: 28

this never prints `find-file`:

(let [wsp-name     "blah"
      initial-file "myfilename"]
    (str "(progn (russ/open-workspace \"" wsp-name "\") "
         (when initial-file
           (str "(find-file \"" initial-file "\")") " ")
         ")"))

Answer: b/c of the very last " " in the `(when initial-file ...)` list - the

middle str is just dropped