is there some sort of extra hinting I have to do to handle reifying a Consumer of a generic type?
I keep on getting class cast errors
Syntax error (ClassCastException) compiling at (/tmp/form-init17042598140599140008.clj:1:74). class aishub.core$consumer$reify__166 cannot be cast to class [Ljava.util.function.Consumer; (aishub.core$consumer$ reify__166 is in unnamed module of loader clojure.lang.DynamicClassLoader @29f0802c; [Ljava.util.function.Consumer; is in module java.base of loader 'bootstrap')
(defn ^Consumer consumer [] (reify Consumer (accept [this t] (println t))))
with something calling (NMEAMessageHandler. "LS" (consumer) later
you'll want the type hint before the [], not after defn
that's a good catch! but I'm still getting the same error
maybe a better practice to do a gen-class w/ :implements?
shouldn't matter unless there's more to it than what you've shown