<< Back to previous view

[CLJS-671] Inconsistencies when calling 'name' on keywords from strings vs literal keywords Created: 08/Nov/13  Updated: 09/Nov/13  Resolved: 08/Nov/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Joseph Smith Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: keywords
Environment:

Clojurescript r2024; Java 1.7.0_25; OSX 10.9



 Description   

Clojurescript:
1. (keyword "some.name.spaced/keyword")
:some.name.spaced/keyword

2. (name (keyword "some.name.spaced/keyword"))
"some.name.spaced/keyword"

3. (name :some.name.space/keyword)
"keyword"

I'd expect 2 and 3 to return the same string, given 1 returns what looks like the keyword I give to 3.

In contrast to Clojure:
(keyword "some.name.spaced/keyword")
:some.name.spaced/keyword

(name (keyword "some.name.spaced/keyword"))
"keyword"

(name :some.name.space/thing)
"thing"



 Comments   
Comment by David Nolen [ 08/Nov/13 4:52 PM ]

CLJS-660

Generated at Wed Jul 23 06:07:03 CDT 2014 using JIRA 4.4#649-r158309.