+1 On Fri, Aug 28, 2009 at 4:27 AM, Mike Hinchey <hinche...@gmail.com> wrote:
> I have a suggestion for the with-open macro. It calls .close when it's > finished. I'd like it to have a (defmulti close type) so it's behavior is > extensible. A standard method could be defined for java.io.Closeable and a > :default method with no type hint. I've come across a few cases where some > external library defines what is essentially a close method but names it > shutdown or disable, etc., and defining my own close method would be much > easier than rewriting with-open. This would also allow people to eliminate > reflection for classes like sql Connection that were created before > Closeable. > > I'll submit a patch if it's wanted. This would fit in core, or maybe > contrib.duck-streams with a slightly different name. > > -Mike > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---