ClojureScript

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

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: 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))

Activity

People

  • Assignee:
    Unassigned
    Reporter:
    Vasile
Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: