Re: proposed new contrib: java-utils

2009-04-06 Thread Perry Trolard
Hi Stuart, I had occasion to wrap java.util.Properties. If there's interest, may be a good candidate for c.c.java-utils. It's pasted in below, & attached in the group at http://clojure.googlegroups.com/web/props.clj Feel free to change as you see fit. Best, Perry (ns props ; Conv

lazy seqs (was Re: proposed new contrib: java-utils)

2009-04-06 Thread Stuart Halloway
r652 is a breaking change to contrib. (powers-of-2) and (fibs) are now functions and do not hold their heads. primes is still a sequence because it needs to hold past values for efficiency. Stuart > On Apr 5, 2009, at 4:27 PM, Stuart Halloway wrote: > >> At quick glance it looks to me that a

Re: proposed new contrib: java-utils

2009-04-05 Thread Stephen C. Gilardi
On Apr 5, 2009, at 4:27 PM, Stuart Halloway wrote: At quick glance it looks to me that all three of the lazy-seqs should be functions. If you want me to I'll change this and add tests. Please do. Thanks. --Steve smime.p7s Description: S/MIME cryptographic signature

Re: proposed new contrib: java-utils

2009-04-05 Thread Stuart Halloway
> I'd also like to get your latest thinking on your suggestions from > some time ago about clojure.contrib.lazy-seqs. If they can be > rewritten as you suggested as functions that return a new sequence > rather than as "def'd" sequences, that's strictly more powerful and > would be an impr

Re: proposed new contrib: java-utils

2009-04-04 Thread Stuart Sierra
On Apr 3, 10:17 am, Stuart Halloway wrote: > (3) coercions for Java's irritating types: File/String, ... clojure.contrib.duck-streams has "file" but not the others -the other Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: proposed new contrib: java-utils

2009-04-03 Thread Kyle Schaffrick
On Fri, 3 Apr 2009 10:17:33 -0400 Stuart Halloway wrote: > > Hi all, > > I would like to pull together functions that help with Java interop > and place them in a new contrib: java-utils. Some examples: > > [...] > > If this is interesting to others (or at least inoffensive) I will > move f

Re: proposed new contrib: java-utils

2009-04-03 Thread Stephen C. Gilardi
On Apr 3, 2009, at 10:17 AM, Stuart Halloway wrote: If this is interesting to others (or at least inoffensive) I will move forward with it. I'm in favor. I'd also like to get your latest thinking on your suggestions from some time ago about clojure.contrib.lazy-seqs. If they can be rewri

proposed new contrib: java-utils

2009-04-03 Thread Stuart Halloway
Hi all, I would like to pull together functions that help with Java interop and place them in a new contrib: java-utils. Some examples: (1) Pull out SteveG's properties fn, currently hidden in the internals of clojure.contrib.sql (2) reflective helpers for accessing private and protected va