Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Approval:
      Accepted
    • Patch:
      Code and Test

      Description

      Original issue
      https://dev.clojure.org/jira/browse/CLJS-536

      Keypoints from CLJS-536 Closed

      • IEncodeJS is powerfull, but for keywords, can break other libreries that expect trim-ns behavior (Le Wang)
      • With the introduction of specs, the namespaced keywords are being used more and more. This issue prevents streamlined edn->json->edn transformation. I think it should be reopened. IMO the 'lossy' method should never be a default one. (Jozef Wagner)
      • Should be possible do this without break existing code and using kwargs (Paulus Esterhazy)

      An use example can be `(clj->js {:foo/bar 33} :keyword-fn #(.-fqn %)) ;=> #js {:foo/bar 33}`

      PS: key->js should use key>js method, but I keep it with clj>js to avoid break things (it should be another bug?!).

        Attachments

          Activity

            People

            • Assignee:
              dnolen David Nolen
              Reporter:
              souenzzo Enzzo Cavallo
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: