class Person {
String name;
int age;
Person(String name, int age) {this.name = name; this.age = age}
}
This is still more verbose than the (defrecord person [name age]) but still, I agree with the dodgy examples used.Disclaimer : I don't know Clojure or similar and therefore I could be missing something. I did a quick search for defining private attributes in Clojure but didn't find any good hits.