ClojureScript

`format` %s behavior is incorrect for keyword, symbol etc.

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    ClojureScript Rhino REPL

Description

On the Clojure REPL, `format` works fine:

user=> (format "foo%s" :s) 
"foo:s" 
user=> (format "foo%s" 's) 
"foos"

However, on the CLJS REPL (Rhino), the output is different:

ClojureScript:cljs.user> (format "foo%s" :s) 
"foo 's" 
ClojureScript:cljs.user> (format "foo%s" 's) 
"foo 's"

Reference: http://groups.google.com/group/clojure/browse_thread/thread/b253d810536a4046

Activity

David Nolen made changes -
Field Original Value New Value
Description On the Clojure REPL, `format` works fine:

<code>
user=> (format "foo%s" :s)
"foo:s"
user=> (format "foo%s" 's)
"foos"
<code>
 
However, on the CLJS REPL (Rhino), the output is different:

<code>
ClojureScript:cljs.user> (format "foo%s" :s)
"foo 's"
ClojureScript:cljs.user> (format "foo%s" 's)
"foo 's"
</code>

Reference: http://groups.google.com/group/clojure/browse_thread/thread/b253d810536a4046
On the Clojure REPL, `format` works fine:

{code}
user=> (format "foo%s" :s)
"foo:s"
user=> (format "foo%s" 's)
"foos"
{code}
 
However, on the CLJS REPL (Rhino), the output is different:

{code}
ClojureScript:cljs.user> (format "foo%s" :s)
"foo 's"
ClojureScript:cljs.user> (format "foo%s" 's)
"foo 's"
{code}

Reference: http://groups.google.com/group/clojure/browse_thread/thread/b253d810536a4046
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 (0)

Dates

  • Created:
    Updated:
    Resolved: