clojure - defrecord with empty constructor -
I am using defrecord on a simple example, say:
(defrecord Person [fname lname address]) I'm using a tool that requires a 0-parameter manufacturer, then trying to use the above on JVM leads to :
CompilerException java.lang.RuntimeException:, class user.Hello Compilation: Could not find 0-parameter manufacturer for class (form init5503453667732926891.clj: 1: 13) < / Pre> What is faster / most beautiful Is that the 0-Ultimate Manufacturer to Generate?
"itemprop =" text "> You should think of this record as the class:
class person (last object fname; last object lname; last object address; public person (last item fname, last item lname, last object address) {this.fname = fname; this.lname = lname; this.address = Address;}} This is ultimately irrevocable with all areas.
Take a look at this.
Comments
Post a Comment