Uploaded image for project: 'tools.reader'
  1. TRDR-33

CLJS: syntax-quote doesn't auto-qualify symbols

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Labels:
      None
    • Patch:
      Code and Test

      Description

      If x resolves to cljs.user/x then read-string on "`x" should result in the cljs.user namespace being incorporated in the result.

      For example, testing using the Node REPL that ships with ClojureScript:

      cljs.user=> (require '[cljs.tools.reader :as r])
      nil
      cljs.user=> (binding [r/resolve-symbol (fn [_] 'cljs.user/x)]
        (r/read-string "`x"))
      (quote x)
      

      The result should instead be

      (quote cljs.user/x)
      

        Attachments

          Activity

            People

            • Assignee:
              bronsa Nicola Mometto
              Reporter:
              mfikes Mike Fikes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: