Uploaded image for project: 'ClojureScript'
  1. CLJS-536

clj->js trims the namespace prefix from keywords while writing them to string

    Details

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

      Description

      The following behavior was observed and confirmed from the code:

      (clj->js :ns/n) => "n"

      I believe this is a limitation and the namespace of the keyword should be kept while writing it to string.
      The code in core.js does this while handling keywords:

      (keyword? x) (name x)

      while it should do this (or something similar):

      (keyword? x) (str (namespace x) "/" (name x))

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: