Hi,
I found it a bit odd that the 2-arity version of keyword
fails on anything else than strings. Now that simple-symbol?
and simple-keyword?
exist to validate the input, could it relax its input requirement for these two cases? (Granted: this is a very minor oddity, just wondering for my own curiosity)
Relax to support what? Symbols and keywords?
Is there some example where this would be useful?
Is this a case of Hyrum's law or is this really supported on purpose? https://github.com/borkdude/sci/issues/440
I stumbled upon this in real code somewhere
I'm not sure, but as an extra datapoint, deftype
ignores the namespace segment aswell, and I'm 100% sure somewhere in clojure.core
there's code that emits deftypes with clojure.core namespacing (on interface method names)
ah yeah, it's defrecord
(e.g. it macroexpands to
(deftype* user/x user.x [...] :implements [... ] (clojure.core/entrySet [..] ...) ..)
)so I can imagine real code out there that would break if this behavior was removed from deftype and or extend-type
likely a bunch of macros out there that don't do
~'method-name
thanks