Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Declined
    • Labels:
      None

      Description

      In Clojure or ClojureScript, if you evaluate a form involving syntax-quote of a dot form, the instance member / field, is not resolved. For example, in ClojureScript,

      `(.x o)
      

      yields

      (.x cljs.user/o)
      

      If you use (the ClojureScript implementation of) tools.reader on such a form, you can see that the .x symbol is resolved (and if using cljs.analyzer/resolve-sym, you will get a slash).

      An additional assertion in cljs.tools.reader-test/read-syntax-quote that illustrates a problem that exists (with at least the ClojureScript implementation of tools.reader):

        (is (= (binding [resolve-symbol (constantly (symbol "/x"))]
                 (read-string "`.x"))
              ''.x))
      

      (This shows that the .x gets resolved to /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: