Automatically generating test-cases for functions (problem with macros)

2012-03-11 Thread alco
Hi! I've written a macro to generate tests for functions that have the :_test key in their metadata. I know that clojure.test automatically runs tests associated with :test keys, but I'd like to implement my own test-case generation. Here' what it looks like: (defn my-last P01 (*) Find the

Re: how to restart Clojurescript One repl the right way?

2012-03-11 Thread Pierre-Henry Perret
Yes, good question. It leads to another one: is ther a clojure hook to stop the server ? I personally kill the process to sweep out the vm and then can restart again. Le jeudi 8 mars 2012 09:21:58 UTC+1, George Oliver a écrit : hi, I'm just starting with ClojureScript and ClojureScript One.

Re: how to restart Clojurescript One repl the right way?

2012-03-11 Thread John Collins
On Thursday, March 8, 2012 9:21:58 AM UTC+1, George Oliver wrote: hi, I'm just starting with ClojureScript and ClojureScript One. Sometimes working with One I kill the cljs-repl for whatever reason (something hangs, I make some mistake and can't correct it, etcetera); when I go to

Re: clojure.io

2012-03-11 Thread Daniel Barlow
On Sat, Mar 10, 2012 at 9:41 PM, Brian Goslinga brian.gosli...@gmail.comwrote: There is a trade off here. If you want to be very portable you'll end up with something like the CL path API because you need logicals and file revisions to really support VMS, for example. In a former life I

Re: Compilable clojure program, but unreadable?

2012-03-11 Thread Stuart Sierra
The syntax ::s/kwd is incorrect syntax: it should be either ::kwd (which will resolve in the current namespace) or :s/kwd (only one colon). -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Automatically generating test-cases for functions (problem with macros)

2012-03-11 Thread Stuart Sierra
Looks like you're doing something similar to the clojure.test/with-test macro. -S -- 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 moderated - please be

Re: Compilable clojure program, but unreadable?

2012-03-11 Thread Kevin Downey
On Mar 11, 2012 4:10 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: The syntax ::s/kwd is incorrect syntax: it should be either ::kwd (which will resolve in the current namespace) or :s/kwd (only one colon). -S ::s/kwd is valid, it will cause the namespace of the resulting keyword to be

Re: Compilable clojure program, but unreadable?

2012-03-11 Thread Meikel Brandmeyer
Hi, Am 12.03.2012 um 00:09 schrieb Stuart Sierra: The syntax ::s/kwd is incorrect syntax: it should be either ::kwd (which will resolve in the current namespace) or :s/kwd (only one colon). The reader page says, with :: they are resolved in the current namespace. And this seems to work

Re: Compilable clojure program, but unreadable?

2012-03-11 Thread Jonas
Hi, Is this inconsistent behaviour: user= `s/foo s/foo user= ::s/foo #RuntimeException java.lang.RuntimeException: Invalid token: ::s/foo nil user= (require '[clojure.string :as s]) nil user= `s/foo clojure.string/foo user= ::s/foo :clojure.string/foo

Re: Need opinions on arglists with optional arguments

2012-03-11 Thread Stephen Compall
On Sat, 2012-03-10 at 21:31 +, James Reeves wrote: The Clojure docs docs seem to favour the first style [1], but there's an ambiguity as to whether attrs? means an optional argument or a boolean value. I've also preferred the Clojure doc style, under the theory that arglists are meant for