Fork me on GitHub
#clojure
<
2021-12-04
>
Alex Miller (Clojure team)00:12:14

gen-class will turn metadata into annotations

Jelle Licht00:12:01

Doesn’t gen-class mean that you can’t easily do REPL driven development? And fwiw, I know that e.g deftype supports adding annotations for classes that are defined dynamically, so ideally I’d have a proxy that allows the same. Thanks either way!

Alex Miller (Clojure team)01:12:38

Yeah, I don't know if proxy can support this

Alex Miller (Clojure team)00:12:39

Or rather I think it it works there too, see https://clojure.org/reference/datatypes#_java_annotation_support for more on using with deftype etc

cl_j00:12:29

anyone knows how to use local relative path in dependencies instead of :git/url in deps.edn?

R.A. Porter00:12:36

{:local/root "path/to/dir/containing/other-deps.edn"}

👍 1
jjttjj20:12:48

(sequence
  (map (fn [x y] (+ x y)))
  (range 1 10)
  (range 10 20))

imre21:12:08

Oh, that indeed seems to be the case, thank you!

imre21:12:24

Very interesting. It appears this is achieved via clojure.lang.TransformerIterator/createMulti, which doesn't appear to be used anywhere else in core, which makes me think this is the only way this arity will be invoked via core fns

Alex Miller (Clojure team)22:12:23

That's the only place you can get to it right now

Alex Miller (Clojure team)22:12:01

It may be leveraged elsewhere in the future

Alex Miller (Clojure team)22:12:44

Generally, the transducer arities would start to fight with the non transducer arities for stuff like this

imre22:12:23

Thank you for the confirmation! Looking forward to that may part 😉