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

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

Re: clojure.io

2012-03-11 Thread Daniel Barlow
On Sat, Mar 10, 2012 at 9:41 PM, Brian Goslinga wrote: > 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 spent more time than I no

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 clojure@googlegroups.

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" 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 resolved via the name

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 sin

Re: Compilable clojure program, but unreadable?

2012-03-11 Thread Jonas
Hi, Is this inconsistent behaviour: user=> `s/foo s/foo user=> ::s/foo # nil user=> (require '[clojure.string :as s]) nil user=> `s/foo clojure.string/foo user=> ::s/foo :clojure.string/foo I think that ::s/foo should be resolved to :s/foo if there is

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

Re: [ANN] clojure-py 0.1.0 Clojure on Python

2012-03-11 Thread Daniel Gagnon
On Thu, Mar 8, 2012 at 10:53 AM, Timothy Baldridge wrote: > > What's the plan for ratios and characters? I assume they're still on > > the TODO list? (Maybe Issue 17 covers the ratios?) > > Yeah, I need to run a few more tests, but I'm thinking of somehow > layering libgmp ontop of Python in ord