This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-16
Channels
- # admin-announcements (3)
- # arachne (9)
- # beginners (10)
- # boot (56)
- # cider (4)
- # cljs-dev (5)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (146)
- # clojure-austin (9)
- # clojure-greece (3)
- # clojure-poland (14)
- # clojure-russia (1)
- # clojure-uk (19)
- # clojurescript (46)
- # cursive (16)
- # datomic (21)
- # emacs (38)
- # events (2)
- # flambo (1)
- # garden (3)
- # hoplon (41)
- # jobs (1)
- # keechma (87)
- # off-topic (2)
- # om (62)
- # om-next (4)
- # other-languages (7)
- # pedestal (6)
- # protorepl (1)
- # reagent (3)
- # rethinkdb (1)
- # ring-swagger (1)
- # rum (3)
- # spacemacs (2)
- # specter (12)
- # test200 (2)
- # untangled (12)
Relative beginner here, is there any way I can add metadata to a Java object? (a JRuby instance to be exact) I’d like to make sure that when I reuse the object (for parsing text in this case), I’m sure it has been loaded with the right properties and so is suitable for reuse. I tried using a ref to attach meta, but that doesn’t seem to work.
nicorikken: only if it implements the IMeta interface
refs do not implement IMeta, so they don't help there
oh weird - they claim to implement IMeta, but I can't seem to attach or retrieve metadata...
a bit strange how Clojure implements multiple dispatch, defmulti, is there an alternate syntax which does it in a single expression? like the let syntax?
It's implemented that way to be open for later extension
It's not too hard to get what you want in a macro though and I know I've seen impls in the past but can't remember where
ah ha, that makes sense
what doesn’t make sense it atom’s crazy automatic indentation when pasting Clojure code examples into the editor 😞
on a completely unrelated note