This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-10
Channels
- # babashka (17)
- # beginners (57)
- # calva (19)
- # cider (1)
- # clj-kondo (21)
- # clojure (36)
- # clojure-austin (15)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (35)
- # clojure-filipino (1)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (2)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-sg (1)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (3)
- # clojurescript (7)
- # clr (9)
- # community-development (5)
- # cursive (14)
- # datalevin (1)
- # emacs (5)
- # events (5)
- # exercism (2)
- # figwheel-main (2)
- # fulcro (6)
- # funcool (3)
- # introduce-yourself (2)
- # joyride (7)
- # leiningen (4)
- # london-clojurians (9)
- # malli (3)
- # membrane (1)
- # missionary (54)
- # music (1)
- # nbb (2)
- # pathom (5)
- # pedestal (55)
- # rdf (13)
- # re-frame (10)
- # reitit (3)
- # shadow-cljs (17)
- # vim (58)
- # web-security (12)
I have an interesting issue and I'm not sure if it's Cursive or Clojure. I have this protocol:
(defprotocol IOutbox
(outbox-write! [this event])
(outbox-read [this])
(outbox-get [this event])
(outbox-delete! [this event]))
The implementation looks like thisThat issue is Cursive mistaking that line for an invocation. Which version of Cursive are you running?
Also, what is the form there, is it a deftype, defrecord, or something else with similar syntax?
This should have been fixed in 1.12.5: https://github.com/cursive-ide/cursive/issues/2346
1.12.7-eap1-2022.3
In the code above, I have the following setup:
1. The IOutbox protocol is defined in one ns.
2. In the displayed ns there is a record: (defrecord RefChat [db outbox])
3. The above snippet is in a extend-type RefChat
form and is one of the extended types.
Does this implementation work? I've never seen implementing function names with namespaces...
It does work. TIL....
Thanks!
Notice the red line. It says "Incorrect arity 2 for" that method. Any idea what's up with that?