Re: Making a Java class implement ILookup

2017-02-28 Thread Mikera
You might want to try implementing a small wrapper class that implements ILookup. Then you can do something like: (:keyword (MyWrapper. my-obj)) Prefer composition over inheritance, etc. On Wednesday, 1 March 2017 04:12:06 UTC+8, Ernesto Garcia wrote: > > Hi all, > > I am using Java class that

Re: Making a Java class implement ILookup

2017-02-28 Thread Alex Miller
If it follows Java bean semantics, you can use the `bean` function to view it as a map with properties as keys. user=> (bean (java.util.Date.)) {:day 2, :date 28, :time 1488314343215, :month 1, :seconds 3, :year 117, :class java.util.Date, :timezoneOffset 360, :hours 14, :minutes 39} On Tuesda

Making a Java class implement ILookup

2017-02-28 Thread Ernesto Garcia
Hi all, I am using Java class that acts as a map, but doesn't implement Map. (It's not in my hands to modify it). I would like to do the usual lookup code: (:keyword my-obj) I can't make the class extend ILookup, as ILookup is an interface, not a protocol. Do you know of any other way to achi

Re: Release date for 1.9

2017-02-28 Thread Dan Burton
Obligatory: "our team uses clojure-future-spec with clojure-1.8" -- no problems so far. -- Dan Burton On Tue, Feb 28, 2017 at 11:59 AM, Sean Corfield wrote: > On 2/28/17, 10:26 AM, "Erik Assum" e...@assum.net> wrote: > > And, yes, I'm aware of the fact that the 1.9-alphas are very stable wrt >

Re: Release date for 1.9

2017-02-28 Thread Sean Corfield
On 2/28/17, 10:26 AM, "Erik Assum" wrote: > And, yes, I'm aware of the fact that the 1.9-alphas are very stable wrt > putting it in production. Obligatory: “we’ve been running the 1.9 Alphas in production for months so that we can leverage clojure.spec” – no problems so far. Sean Corfield --

Release date for 1.9

2017-02-28 Thread Alex Miller
Sorry, no estimate at this time. -- 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 patient with your first post. To unsubscribe fro

Release date for 1.9

2017-02-28 Thread Erik Assum
Hi, I know release dates are not normally announced for Clojure versions, and I respect and sympathize with that. That being said, my team use Clojure in our daily work, and are eager to start using some sort of schema to describe our data. In the defn podcast with Alex Miller, I think "at l