Re: [clojure.spec] Best practices for programmatically generating specs?

2017-12-14 Thread Aaron Brooks
, so > stay tuned for that. > > > > On Wednesday, December 13, 2017 at 5:14:34 PM UTC-6, Aaron Brooks wrote: >> >> I've found in several projects that I want to have families of specs that >> have some shared structure but some differing structure. >> >> Cons

[clojure.spec] Best practices for programmatically generating specs?

2017-12-13 Thread Aaron Brooks
I've found in several projects that I want to have families of specs that have some shared structure but some differing structure. Consider a case where I have some, possibly nested, structure which in some cases will have some type of place-holder values which will later be replaced with

Re: T-shirts?

2013-12-11 Thread Aaron Brooks
Out of curiosity, who is behind ClojureAppreciationhttp://www.zazzle.com/gifts?ch=clojureappreciation? (i.e Who gets the ~21% markup?) If this is Rich and/or Tom, I'm more than glad to pay $37 for a t-shirt. If it's a for-profit entity (such as Cognitect), I think the price is a bit extravagant

ops' macro to tidy +', -', *', /' operations?

2010-06-23 Thread Aaron Brooks
I'm afraid I have nothing to contribute to the on-going discussions of what the default numerical behavior should be and what the prime version operations should do. I did, however, notice that the prime ops tend to be clustered together in the examples given and seem likely to be clustered in

Re: March 20th 2009 Rich Hickey Appreciation Day!

2009-03-20 Thread Aaron Brooks
Here, here! +1 +1 +1 ... !! On Fri, Mar 20, 2009 at 2:26 PM, Rayne disciplera...@gmail.com wrote: I Anthony Simpson, with the support of fellow Clojurists hereby declare March 20th, the first day of spring, Rich Hickey appreciation day! Rich Hickey has certainly done a lot for us, making

Re: 08 and 09 are invalid numbers, but 01 through 07 are fine?

2009-03-15 Thread Aaron Brooks
Rather than going to the horrible effort /irony of looking up to see if Clojure had support for binary notation, I had a Clojure prompt so I just tried it and got semi-surprising results: user= #b010001 java.lang.Exception: No dispatch macro for: b 4097 I'm not surprised that Clojure complains

Re: categorizing forms

2009-03-08 Thread Aaron Brooks
Mark, I've thought about doing this in the past (partially for my own reference) but never got around to it. Thanks so much for your effort! It might be beneficial to make the function names links to the API reference. I also found it a little hard when scanning the functions to clearly

Re: 12 Days of Christmas in idiomatic(?) clojure

2008-12-29 Thread Aaron Brooks
On Dec 24, 4:20 pm, Mibu mibu.cloj...@gmail.com wrote: I'd write it this way: (apply + (mapcat #(range 1 %) (range 2 14))) I think idiomatically I would have written it with (partial range 1) instead of #(range 1 %), but I prefer compact forms. In Clojure (anybody correct me if I'm wrong) I

Re: POLL: Domain name for project hosting site.

2008-11-17 Thread Aaron Brooks
Other options: - creatjure? - featjure? - cultjure? All three have low Google search hit counts. I think cultjure is better suited for discussion forums. Creatjure seems a good place for our Clojure creatures. On Nov 17, 2:52 pm, Drew Crampsie [EMAIL PROTECTED] wrote: Hey All, I've

Re: Dealing with keyword-keyed maps in Java land

2008-10-13 Thread Aaron Brooks
All, I would think that changing or wrapping the map would create confusion and additional overhead. In my mind the most natural interaction would be to provide a way for Java code to create references to keywords: x = map.get(clojure.keyword(foo));// ... or something along these lines

Native library calls from Clojure via JNA

2008-09-29 Thread Aaron Brooks
All, I've had success using JNA to call system libraries I thought I'd post an example snippet in case it helps someone else. The below demo requires a clojure-contrib.jar from http://sf.net/projects/clojure-contrib and a jna.jar from https://jna.dev.java.net/ (be sure it's actually, jna.jar not