[ANN] antizer 0.2.0

2017-06-29 Thread Michael Lim
https://github.com/priornix/antizer Antizer has just been released. It is a ClojureScript library implementing Ant Design React components for Reagent and Rum. Ant Design is an enterprise-class UI design language and React-based

Re: def partially done when used in if

2017-06-29 Thread Justin Smith
It creates an "undefined" var if the def gets compiled but doesn't get run. This isn't the same as an "undefined behavior" as is documented for languages that have formal specifications (clojure of course has none). I did qualify that def / defn inside other forms are "generally" a sign of bad

Re: def partially done when used in if

2017-06-29 Thread Kaiming Yang
Thanks Justin, Sadly in my case those mutable container will not work because I was making a monkey-patch to a bug in a macro from other package. Despite what I was doing, I think "a bad design" in clojure spec is too weak to fit this situation. If someone tells me "it is a bad design" I

Re: def partially done when used in if

2017-06-29 Thread Justin Smith
Clojure's compiler (there's no interpreter) creates vars for every def inside a form it compiles. Before the def actually runs it's unbound (as if you had used declare). Generally def and defn that are not top level forms are signs of a bad design. If you need runtime rebinding use a proper

def partially done when used in if

2017-06-29 Thread Kaiming Yang
Hi, Recently encountered a weird issue, A def in if clause declared a var but left it unbound. I encountered this issue when I was trying to implement something like "define a symbol if it is not defined yet". Naively I tried: (if (nil? (resolve 'foo)) (def foo 42)) ; Cannot use (def foo

Re: fdef for defmulti?

2017-06-29 Thread Alex Miller
I don't think there is a jira issue for it, feel free to add it. Not currently a priority for us but if someone wanted to work on it, I'd be happy to review. On Thursday, June 29, 2017 at 1:47:36 PM UTC-5, Derek Thurn wrote: > > I'm also interested in this functionality. Is there an existing

[ANN] clojure.java.jdbc 0.7.0 Beta 1

2017-06-29 Thread Sean Corfield
What? Clojure’s contrib wrapper for JDBC. Where? https://github.com/clojure/java.jdbc [org.clojure/java.jdbc “0.7.0-beta1”] Summary? Adds reducible queries; Drops support for Clojure 1.4.0 (see below). Details? A new function, reducible-query, has been added

Re: fdef for defmulti?

2017-06-29 Thread Derek Thurn
I'm also interested in this functionality. Is there an existing JIRA issue we can follow for allowing specs for multimethods? On Thursday, 18 August 2016 05:32:01 UTC-7, Patrik Sundberg wrote: > > Hi, > > Am I right to think you can't currently fdef a defmulti function? I tried > and when

Re: error in nrepl

2017-06-29 Thread Didier
If you're no fan on emacs or vim, ProtoRepl is great. I also recommend cursive, but if you're no fan of intelliJ autosave, counterclockwise eclipse os surprisingly great. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: error in nrepl

2017-06-29 Thread lawrence . krubner
Thank you for everyone's reply. Both Spacemacs and ProtoRepl sound very interesting. I am torn and am unsure which path to take. I suppose I'll give Spacemacs a try and see if that works out. I am very pleased to see progress being made regarding at least the DE of IDE for Clojure. That's

Spec's not being checked on macro expansion

2017-06-29 Thread Ed Bowler
Hi, I've got a problem where specs are not always being checked during macro expansion. It seems to be reliably be checked when I load the code using cider (using cider-load-buffer), but not when running lein test at the terminal. Code: (defproject macroexpand-spec-test "0.1.0-SNAPSHOT"