2 ms·
You can save yourself the POO -> POM translation by using `clojure.core/bean`, which turns Java objects into maps, e.g. (bean (java.util.Date.)) => {:d
by pgt 3y ago
You can save yourself the POO -> POM translation by using `clojure.core/bean`, which turns Java objects into maps, e.g.
(bean (java.util.Date.))
=> {:day 3,
:date 24,
:time 1706087564699,
:month 0,
:seconds 44,
:year 124,
:class java.util.Date,
:timezoneOffset -120,
:hours 11,
:minutes 12}
- cnity 3y agoClojure is just fantastic for this kind of thing. You can really tell Rich Hickey and the wider community has spent a lot of time thinking about developer problems and actually fixing them with sensible tooling.