This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-16
Channels
- # aws-lambda (3)
- # beginners (20)
- # boot (201)
- # cljs-dev (45)
- # cljsrn (9)
- # clojars (19)
- # clojure (141)
- # clojure-china (2)
- # clojure-dev (11)
- # clojure-greece (6)
- # clojure-italy (1)
- # clojure-new-zealand (1)
- # clojure-romania (1)
- # clojure-russia (55)
- # clojure-spec (58)
- # clojure-taiwan (1)
- # clojure-uk (97)
- # clojure-ukraine (40)
- # clojurescript (77)
- # core-async (5)
- # core-typed (1)
- # cursive (35)
- # datomic (9)
- # jobs (2)
- # jobs-rus (25)
- # juxt (8)
- # lein-figwheel (14)
- # luminus (24)
- # mount (16)
- # off-topic (56)
- # om (36)
- # onyx (22)
- # pedestal (3)
- # perun (14)
- # re-frame (111)
- # reagent (5)
- # remote-jobs (6)
- # ring-swagger (3)
- # slack-help (1)
- # specter (17)
- # unrepl (12)
- # untangled (56)
I'm just getting back to this from yesteday: http://www.braveclojure.com/multimethods-records-protocols/#Records
In this snippet, I'm creating a protocol for WereCreature
at ➊, with full-moon-behaviour [x]
as a method signature at ➋. When I get to ➌, I'm defining a record WereWolf
with fields name
and title
, but just wanted to check my understanding on the next few lines (5-7).
The doc
for defrecord
is as such:
clojure.core/defrecord
([name [& fields] & opts+specs])
Am I right in thinking that lines 5-7 constitute a spec for implementing the WereCreature
protocol, defining the full-moon-behaviour
method for the WereWolf
record type?
Each spec consists of a protocol or interface name followed by zero
or more method bodies:
@noisesmith Cheers, I saw that pretty much immediately after I sent the last message!
reify creates an instance of an anonymous class
defrecord defines a class that acts kind of like a hash-map but has extra methods you specify
Is there a way in leiningen to disable deploy to clojars? It seems way too easy to deploy private jars by mistake.
Hi guys, i’m having a hard time to configure the InteliJ Community IDE for Clojure
Are there are tutorials for this?
@lucianboboc: Are you just getting started with Cursive? Or trying with just IntelliJ?
with Cursive
my issue is that the IDE can’t find any Clojure SDK
i have installed Clojure throug leiningen
There are some issues that can occur if you have older versions, not sure specifically which things to check though - did you follow the instructions from the Cursive site?
yes but those seems to be a little old to, the IDE is a little different