I created an application and information interface and a class, but when I look at the generated classes, the return type for all methods is Object, can I change the return type to String? The documentation says that a hint type is possible with defrecord, but does not give an example, the only examples I could find were for hinting fields and method arguments.
Src / com / vnetpublishing.clj
(ns com.vnetpublishing) (defprotocol ApplicationInfo (author [obj]) (author-email [obj]) (copyright [obj]) (app-name [obj]) (version [obj]) )
SRC / Physics.clj
(ns Physics) (defrecord info [] com.vnetpublishing.ApplicationInfo (author [this] "Ralph Ritoch") (author-email [this] "Ralph Ritoch < root@localhost >") (copyright [this] "Copyright \u00A9 2014 Ralph Ritoch. All rights reserved.") (app-name [this] "Physics") (version [this] "0.0.1-alpha") )
methods types clojure
Ralph ritoch
source share