Re: Why (memoize (fn [_#] (gensym "node")) in rhizome?

2015-09-12 Thread Akhil Wali
What does _# mean opposed to simply _? With respect to memoization of genus it's the same thing IMHO. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are m

Re: midje only 1 test

2015-09-12 Thread Brian Marick
Roland Kaercher wrote: I *strongly* recommend doing all your testing in a repl buffer. That given, there are two ways to solve your problem. The first, which I prefer, is to start by testing everything: (use 'midje.repl) (autotest) Other than having a REPL, is t

Re: Beginning Clojure Development

2015-09-12 Thread dilettante . coder
I'm a little past the absolute-newb stage (also came from .NET), but I recently came upon *Programming in Clojure* by Mark McDonnell (https://leanpub.com/programming-clojure/), and appreciated how succinct, clear and yet (relatively) comprehensive it is. I'd recommend it highly as a first text

Re: deftype code reload oddity

2015-09-12 Thread Gregg Reynolds
On Sat, Sep 12, 2015 at 7:17 AM, Alex Miller wrote: > This is a tricky area and one that has seen changes lately - what version > of Clojure are you using? > Clojure 1.7.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 A little more background info in case it helps: I've got two gen-interfaces

Re: midje only 1 test

2015-09-12 Thread Roland Kaercher
Hi, if you're using emacs with cider for development you can easily execute a single test by putting the cursor after the fact and pressing C-x C-e (which evaluates the expression and returns a boolean value) or using midje-mode which has the advantage that failures are explained inline. Kind

Re: Why (memoize (fn [_#] (gensym "node")) in rhizome?

2015-09-12 Thread Sam Ritchie
Ah, of course. Even though the guts of the function are ignoring the argument, `memoize` is using it. Cool! Sam Ritchie (@sritchie) RaceHub Co-Founder 703.863.8561 www.racehubhq.com Twitter // Facebook >

Re: deftype code reload oddity

2015-09-12 Thread Alex Miller
This is a tricky area and one that has seen changes lately - what version of Clojure are you using? On Friday, September 11, 2015 at 10:42:32 PM UTC-5, Gregg Reynolds wrote: > > Here's something a little perplexing that I discovered by trial and error: > if you reload (using require :reload) a

Re: why there is java.lang.NoClassDefFoundError: clojure_mail/message$loading__4958__auto__, error

2015-09-12 Thread Gary Verhaegen
For that kind of question, you really need to post your code along with the error. A project on github, perhaps? >From just the error message, it looks like you're trying to use a namespaced symbol "clojure-mail/message", and that symbol is not defined. I would gues either a typo in your own code,

Re: Why (memoize (fn [_#] (gensym "node")) in rhizome?

2015-09-12 Thread Moe Aboulkheir
On Sat, Sep 12, 2015 at 1:58 AM, Sam Ritchie wrote: > Seems like a good use of “delay”, yeah? Slightly different calling > semantics, of course, but still: > > user> (def f (delay (gensym "node"))) > #'user/f > user> @f > node3330 > user> @f > node3330 > The original code wanted different behavi