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)
I’m a big fan of loading the server-side code I need over the REPL connection when it’s opened.
But tooling like CIDER that uses the REPL more than Cursive does are very prone to this sort of problem, right.
Never thought of it that way, static analysis saves you from having to do a lot of the server side stuff.
I don’t think there’s a solution other than saying “this functionality won’t work unless you’re using Clojure 1.9+"
Generally I try to make sure that Cursive will work independently of the version of Clojure the user is using.
I’m actually looking at some REPL improvements right now, and if I want to use EDN then that means a Clojure 1.5+ project. Fortunately I know which version the user is using and can warn them, but it’s a little ugly.
@tbaldridge BTW pure socket REPLs are on the way.
is there a way to grab the :ret
spec out of an fdef
? trying to validate the return value of a fn in a test
Yep, just call get-spec on the symbol to get the function spec
That spec implements ILookup and can be invoked with :ret
So, (:ret (s/get-spec 'full/symbol))