This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-09
Channels
- # beginners (20)
- # boot (4)
- # cider (2)
- # cljs-dev (25)
- # clojure (45)
- # clojure-dev (1)
- # clojure-greece (5)
- # clojure-italy (20)
- # clojure-nl (12)
- # clojure-russia (11)
- # clojure-uk (256)
- # clojurescript (176)
- # data-science (33)
- # datomic (47)
- # docs (1)
- # duct (13)
- # fulcro (54)
- # graphql (24)
- # hoplon (3)
- # jobs (1)
- # leiningen (32)
- # luminus (3)
- # midje (1)
- # mount (2)
- # off-topic (3)
- # onyx (5)
- # overtone (1)
- # parinfer (12)
- # pedestal (4)
- # re-frame (60)
- # reagent (11)
- # reitit (3)
- # ring-swagger (21)
- # rum (1)
- # shadow-cljs (16)
- # spacemacs (23)
- # tools-deps (19)
- # vim (79)
@mfikes minor enhancement to tubular https://github.com/mfikes/tubular/pull/3
@dnolen Thanks! Much simpler. I documented it on the README and pushed tubular
1.3.0 to Clojars.
When implements?
was added, a consequence was that cljs.core/pr-writer
would no longer honor arbitrary extend-type
to, say object
. (The last change in https://github.com/clojure/clojurescript/commit/7d3ce70a1c2f4d54b9044d2e44b62c8252e5dea6)
Is this intentional, or was it just an oversight that a fallback that checks satisfies?
wasn’t added (perhaps at the end of the cond
)?
Hrm. I’m looking here https://github.com/clojure/clojurescript/blob/e43c6f7cbe1a2b6cf782f930b12121e1e247538e/src/main/cljs/cljs/core.cljs#L9928-L10016 I may be missing it
in general I would consider this a minor thing - we should check to see if this overrideable in Clojure itself
I guess in Clojure you can do
(defmethod print-method Object [o w] (.write w "hi"))
(or try to be more specific, as that is a bit coarse-grained)Yeah
user=> (import '( URI))
java.net.URI
user=> (def uri (URI. "x"))
#'user/uri
user=> uri
#object[java.net.URI 0x48d5f34e "x"]
user=> (defmethod print-method Object [o w] (.write w "hi"))
hi
user=> uri
hi
yeah we need to check to see if some has implemented the override before the final case