Hi, I read that deftype is often a better replacement for gen-class and defstruct. Indeed, it would fit for my purposes very well, except the following problem: deftype does not (yet?) use all the information from type hints.
Simple example: (:gen-class :methods [[getText [] String]] ... compiles to: public java.lang.String getText(); But: (deftype ... [#^java.lang.String text]) compiles to: public final java.lang.Object text; Although the documentation states that "fields [...] can have type hints", this seems to work only for primitive types at the moment. For Java interop (using deftype-defined classes from Java code) however, it may be crucial to have the right types. Will this feature be added, and if not, what is the best alternative solution? Thank you! Andi -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en