ClojureScript

cljs.core/str behavior not consistent with clojure

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    This is the behavior on rhino repl, haven't tested on browser

Description

When running the cljs.core/str function with symbols or keywords the output is not the same as in clojure

ClojureScript:cljs.user> (str "hello" :world)
"hello?'world"

The same happens with symbols, it seems the characters used internally for figuring out if a string is a keyword or symbol are not being escaped correctly on the cljs.core/str function.

  1. CLJS-162_1.patch
    16/Mar/12 11:55 PM
    4 kB
    Roman Gonzalez
  2. CLJS-162_2.patch
    19/Mar/12 5:45 PM
    3 kB
    Roman Gonzalez
  3. CLJS-162.patch
    15/Mar/12 9:18 PM
    0.8 kB
    Roman Gonzalez

Activity

Roman Gonzalez made changes -
Field Original Value New Value
Attachment CLJS-162.patch [ 10993 ]
Roman Gonzalez made changes -
Attachment CLJS-162_1.patch [ 10996 ]
Roman Gonzalez made changes -
Attachment CLJS-162_2.patch [ 10998 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: