Re: Patch: java.util.Map support

2008-10-06 Thread Rich Hickey
On Sep 30, 11:17 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Sep 30, 5:04 am, Achim Passen <[EMAIL PROTECTED]> wrote: > > > On Sep 30, 5:20 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > > > > After some more thought, I'm not sure whether this should be a concern > > > or not. Since j

Re: Patch: java.util.Map support

2008-10-01 Thread Stuart Sierra
On Sep 30, 11:17 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > Feedback welcome, Yes, please let Clojure maps implement java.util.Map. As long as seq and coll? still work on maps, I think the breakage will be minimal. -Stuart Sierra --~--~-~--~~~---~--~~ You recei

Re: Patch: java.util.Map support

2008-09-30 Thread Achim Passen
Am 30.09.2008 um 17:20 schrieb Paul Barry: > On Sep 30, 11:17 am, Rich Hickey <[EMAIL PROTECTED]> wrote: >> I've been thinking about this Map vs Collection issue for a while now >> and am considering making the move to: Clojure maps implement Java >> Map. > > Yes, please do! +1! Yes, that’s muc

Re: Patch: java.util.Map support

2008-09-30 Thread Paul Barry
On Sep 30, 11:17 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > I've been thinking about this Map vs Collection issue for a while now > and am considering making the move to: Clojure maps implement Java > Map. Yes, please do! +1! --~--~-~--~~~---~--~~ You received th

Re: Patch: java.util.Map support

2008-09-30 Thread Rich Hickey
On Sep 30, 5:04 am, Achim Passen <[EMAIL PROTECTED]> wrote: > On Sep 30, 5:20 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > > > After some more thought, I'm not sure whether this should be a concern > > or not. Since jmap's purpose is to wrap Clojure maps for passing to > > Java APIs, I'

Re: Patch: java.util.Map support

2008-09-30 Thread Achim Passen
On Sep 30, 5:20 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > After some more thought, I'm not sure whether this should be a concern   > or not. Since jmap's purpose is to wrap Clojure maps for passing to   > Java APIs, I'm not sure when it will be necessary to compare jmaps to   > Clojur

Re: Patch: java.util.Map support

2008-09-30 Thread Achim Passen
Hi Steve, thank you for taking a look and for your suggestions! > This part concerns me: > > > Note: Since clojure maps are no java maps, they can't be equal to java > > maps. This holds for wrapped clojure maps as well - surprisingly (in a > > bad sense), but i don't see a way around this: > >

Re: Patch: java.util.Map support

2008-09-29 Thread Stephen C. Gilardi
On Sep 29, 2008, at 3:20 PM, Stephen C. Gilardi wrote: > This part concerns me: > >> Note: Since clojure maps are no java maps, they can't be equal to >> java >> maps. This holds for wrapped clojure maps as well - surprisingly >> (in a >> bad sense), but i don't see a way around this: >> >>

Re: Patch: java.util.Map support

2008-09-29 Thread Stephen C. Gilardi
Hi achim, That looks like a fine start. Thanks for doing it! This part concerns me: > Note: Since clojure maps are no java maps, they can't be equal to java > maps. This holds for wrapped clojure maps as well - surprisingly (in a > bad sense), but i don't see a way around this: > >(= (doto (

Patch: java.util.Map support

2008-09-29 Thread Achim Passen
Hi! Here's a patch to add java.util.Map support to clojure maps, along with some example code. This my first java code in quite some time, so if you notice i'm doing anything odd or incorrect, please don't hesitate to comment. http://groups.google.com/group/clojure/web/jmap.diff http://groups.go