This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-17
Channels
- # admin-announcements (1)
- # boot (24)
- # cider (8)
- # cljsjs (1)
- # cljsrn (5)
- # clojure (22)
- # clojure-greece (1)
- # clojure-italy (3)
- # clojure-russia (218)
- # clojure-spec (33)
- # clojurescript (51)
- # core-async (6)
- # cursive (1)
- # datomic (13)
- # defnpodcast (2)
- # funcool (2)
- # lein-figwheel (21)
- # onyx (41)
- # proto-repl (4)
- # protorepl (5)
- # reagent (4)
Hi, very newbie deftype
question; I'm getting java.lang.ClassNotFoundException
with my newly defined protocols, although I can't see why this should be. Any ideas? I've tried restarting, new repl, &c. but doesn't seem to help.
(defprotocol AreaRefs
(select-area [ss ref]))
(deftype SpreadSheet [^Workbook wb assocs g]
...
AreaRefs
(select-area [this ref]
(select-keys this (.getAllReferencedCells (AreaReference. ref)))))
In my repl (new, restarted):
nREPL server started on port 54200 on host 127.0.0.1 -
Loading src/net/cgrand/spreadmap.clj...
java.lang.ClassNotFoundException: net.cgrand.spreadmap.AreaRefs
oh God. Never mind. I just saw an import decleration - intellij auto-added it to the top of my file (??)
How can I print something from a Clojure macro without it ending up in the resulting form?
i’m looking for something to persist records seamlessly a bit like mnesia but can’t really find anything
This gets me to Attempting to call unbound fn: #'clojure.core/unquote-splicing
@hans
Maybe a bit more context helps: I'm essentially trying to do something like (map my-macro ...)
@martinklepsch: at that point in the code, you don't need the unquote.
@hans: I see, it seems to work fine in Clojure but when using the macro in ClojureScript the line is added to the JS. Might be just an issue of properly setting *out*
@hans: do you have any advice regarding the compile-mult
macro? or generally how I could map a macro over stuff?
@martinklepsch: if you want to print something from macro for debugging purposes try binding out to err: https://github.com/metametadata/clj-fakes/blob/9f650b432474af15e07c7b98acfd237ebaa057fd/src/clj_fakes/macro.clj#L10
@metametadata: that's handy thanks!
https://github.com/itmeze/toadie seems like a building block of what i was describing
What’s the recommended way to get useful error messages back when testing two or more predicates with are
? I moved my assertions into a fn (with separate is
exprs inside), but in the end I still get a fairly useless expected: (f x y) actual: (not (f x y))
Florida Restaurant Inspections API https://github.com/Code-for-Miami/restaurant-inspections-api/wiki Please send me your thoughts, suggestions and feedbacks. Feel free to colaborate! — made in clojure