This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-14
Channels
- # arachne (5)
- # architecture (2)
- # bangalore-clj (7)
- # beginners (96)
- # boot (34)
- # braveandtrue (1)
- # cider (12)
- # cljs-dev (38)
- # cljsrn (59)
- # clojure (326)
- # clojure-dev (35)
- # clojure-greece (1)
- # clojure-italy (6)
- # clojure-russia (47)
- # clojure-spec (16)
- # clojure-uk (25)
- # clojurescript (136)
- # core-async (18)
- # cursive (18)
- # datascript (2)
- # datomic (28)
- # dirac (6)
- # emacs (4)
- # garden (3)
- # hoplon (28)
- # instaparse (1)
- # jobs (4)
- # juxt (1)
- # lein-figwheel (10)
- # liberator (1)
- # mount (3)
- # off-topic (39)
- # om (16)
- # om-next (1)
- # onyx (15)
- # pedestal (9)
- # proton (1)
- # random (1)
- # re-frame (48)
- # reagent (8)
- # ring-swagger (4)
- # rum (3)
- # specter (5)
- # sql (3)
- # unrepl (273)
- # untangled (27)
- # vim (4)
- # yada (7)
nice, will take a look
probably a bug in core.async as :as
is not documented in refer
but.. it's worked before and I bet a significant number of projects use it in refer-clojure
yeah, could be
looks like @tbaldridge added that in https://github.com/clojure/core.async/commit/90ef7150d5a335c1832d05985248cccb049525b1 so I’ll blame him :)
funny that it worked in the past, is that undefined behavior?
my spec says it is :)
I’ve looked through 20 pages of github results without finding another example so far
I'm sure I've done (;refer-clojure :exclude [..] :as c.c)
somwhere in the past after seeing that in core.async
maybe I thought that the name "refer-clojure" would include an option to refer-clojure as something
the fact that refer-clojure is normally only used with :exclude
seems bizzare, but what do I know
I'm fine with updating that code, to use :require [clojure.core :as core]
I think you can also use :rename
with :refer-clojure
(altho I've hardly ever seen anybody use :rename
)
you can also use :only and :rename
I just looked through 60 pages of results in github (so 600 example usages)
I didn’t see any :as. mostly :exclude with the occasional :only
I’m calling the spec good and async’s usage bad for now
I’ll update async and do a release there
it works in core.async because there's an explicit alias
afterwards but it's a no-op there
I suppose you could see this as a bug in spec though - this is an example of the kind of options that should be “open"
sorry “the refer-clojure spec” (not spec itself)
as in, it did nothing, but should just continue doing nothing
the refer-clojure spec is using (s/* (s/alt …))
but could use s/keys*
I have to believe I did that intentionally, but I now have no memory why
was probably trying to close the set to catch invalid things but this is like a year ago now