core.clj is built from top to bottom, starting with just what Java provides and building up all the requirements for Clojure as it goes. When when
is defined the syntax quote does not yet exist.
The when
macro is defined on line 456 of core.clj and the requirements for syntax-quote are not available until line 682. the when macro is used to define syntax quoting