Fork me on GitHub
#hoplon
<
2017-01-09
>
candera00:01:34

@xssive220 Yeah, there’s really no way around understanding Java at least a little. But it’s pretty similar to most other OO languages in the ways that you need to understand it. There are classes and instances of those classes (aka objects). Methods and fields are either static (associated with the class) or instance (called on a particular instance). Static methods in Java are invoked as ClassName.methodName(args), and in Clojure as (ClassName/methodName args). Instance methods are invoked in Java as instance.methodName(args) and in Clojure as (.methodName instance args). Fields are known by various names in other languages - properties, members, variables. Static fields in Java (associated with the class as a whole, not any particular instance) are invoked as ClassName.fieldName and in Clojure as ClassName/fieldName. Note lack of parens - it’s a value retrieval, not an operation invocation. Instance fields in Java are instance.fieldName and in Clojure (.-fieldName instance) although I believe .fieldName instance) still works for historical reasons.

grant17:01:52

Has anyone tried to build master on hoplon-ui lately? boot build-jar is giving me an empty jar for any commit starting with the code re-org on January, 4th.

grant19:01:42

Cool, so it's not just me. Thanks, @mynomoto. 🙂