Skip to content

Instantly share code, notes, and snippets.

@josf
Created November 5, 2014 09:01
Show Gist options
  • Select an option

  • Save josf/d0dcf2a2a4942308e512 to your computer and use it in GitHub Desktop.

Select an option

Save josf/d0dcf2a2a4942308e512 to your computer and use it in GitHub Desktop.
;;; This is running on phantomjs, but I get the same error in Chrome
eloquentia.data> (cljs.reader/read-string (str {:1 1}))
"Error evaluating:" (cljs.reader/read-string (str {:1 1})) :as "cljs.reader.read_string.call(null,(''+cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,\"1\",\"1\",-521621649),(1)], null))));\n"
#<TypeError: 'null' is not an object (evaluating 'a[(0)]')>
TypeError: 'null' is not an object (evaluating 'a[(0)]')
at read_keyword (:474)
at read_delimited_list (:307)
at read_map (:343)
at read (:663)
at read_string (:689)
at :1
at :5
nil
eloquentia.data> (keyword? :1)
true
eloquentia.data> (keyword 1)
nil
eloquentia.data> (keyword (str 1))
:1
eloquentia.data> (name :1)
"1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment