Has a spec for extend-protocol etc ever been considered?
user=> (s/get-spec `extend-protocol)
nil
Mostly interested in stating that the class names must be simple symbols (rather than Class/forName expression, which can go bad: https://clojure.atlassian.net/browse/CLJ-1381)
It seems in Clojure 1.12 there's no longer the need to write Class/forName for primitive arrays since we can write byte* etcNo interest I guess then
Hm… a quick search on Ask Clojure suggests the answer to your question is a solid “no”. > We do not plan to add specs for the functions in core. cf. https://ask.clojure.org/index.php/12851/full-specs-for-clojure-core-in-core-specs-alpha?show=12855#a12855
i don't think that's quite accurate, extend-protocol is a macro and there are plenty of specs for clojure.core macros
Perhaps @alexmiller just didn't catch this message
Put it on ask
Done https://ask.clojure.org/index.php/13723/spec-for-extend-protocol
Am I correct in thinking that the new Class/member syntax can’t be used to refer to fields?
Previously it could be used for static fields.
still is for static fields
no change here
Ok, but my question is really whether there are changes to allow MyClass/instanceField - I’m assuming not, but was just clarifying.
no
Thanks.
it should be Class/method syntax. If we said Class/member somewhere please point that out
The ticket title said that, I’ve updated