[ClojureScript] Re: Inconsistency in creating keywords

2018-03-01 Thread outrovurt
Thank you both for the links, especially the FAQ page. As an aside I was looking for something like the namespace function and am glad I found it. Something is still confusing me however. If we follow the reader docs which Alex posted, "Symbols begin with a non-numeric character", and "Keywords

[ClojureScript] Re: Inconsistency in creating keywords

2018-03-01 Thread Alex Miller
On Thursday, March 1, 2018 at 9:34:29 AM UTC-6, Thomas Heller wrote: > > Clojure follows the principle of "Garbage in, Garbage out" for a lot of > internal functions. > I would say "unspecified input / unspecified output", however this is not one of those cases in my opinion. The keyword

[ClojureScript] Re: Inconsistency in creating keywords

2018-03-01 Thread Alex Miller
Regarding the keyword function, see the faq at https://clojure.org/guides/faq#unreadable_keywords On Thursday, March 1, 2018 at 6:14:34 AM UTC-6, outr...@gmail.com wrote: > > I've encountered a problem when creating namespaced keywords using the > literal syntax, specifically using keywords

[ClojureScript] Re: Inconsistency in creating keywords

2018-03-01 Thread Thomas Heller
Clojure follows the principle of "Garbage in, Garbage out" for a lot of internal functions. Meaning you are responsible for ensuring that you only use valid data when calling those functions as the validation itself carries overhead which the core fns should not have. :a/0 fails because the

[ClojureScript] Inconsistency in creating keywords

2018-03-01 Thread outrovurt
I've encountered a problem when creating namespaced keywords using the literal syntax, specifically using keywords which start with numbers. If I try using the literal syntax, entering the following at the REPL, I get the exception which follows it: :a/0 ;= clojure.lang.ExceptionInfo: