I support your proposal :)
On Mar 10, 9:10 am, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Hello, > > I have the use case for calling instance? where, once instance? returns > true, I want to do something with the successful instance, such as binding > it, or directly calling something on it. > > For instance, I have in my code : > > (let [console (.getConsole v)] > (when (instance? org.eclipse.debug.ui.console.IConsole console) > ... ...) > > Where I would like to really use when-let : > (when-let [console (instance? org.eclipse.debug.ui.console.IConsole > (.getConsole v))] > ... ...) > > For this to work, instance? would have to return logical true instead of > real true. > > Do you think it could be an interesting idea to change instance? in such a > way ? Or maybe there's already something similar in clojure-contrib I > haven't seen ? > > Thanks in advance, > > -- > Laurent --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---