Re: Bug in try/finally?

2010-08-10 Thread joegg
, I suppose. The tests I've written don't cover all the expected behavior of try/catch/finally. Joe On Aug 10, 12:23 pm, joegg wrote: > Laurent, > > Looking through the output of javap -v, it looks to me like this is > roughly what's been emitted (please forgive t

Re: Bug in try/finally?

2010-08-10 Thread joegg
Laurent, Looking through the output of javap -v, it looks to me like this is roughly what's been emitted (please forgive the mix of clojure and java): try { (prn :test) (swap! a inc) (.foo nil) } finally { (swap! a inc) (.foo nil) } Which explains why @a is 3 -- I'm not sure this is in

Re: Is there an easier way to code this? Destructuring?

2010-07-29 Thread joegg
I agree with Laurent's idea that you should pull this out as a separate function, but I think the most direct answer to your question is that you can bind the map entries in a destructuring as if they were two-element vectors. (map (fn [[ingr quant]] (* (cost ingr) quant)) (cookbook drink)) Joe

ANN: Pittsburgh Clojure Users Group

2010-03-04 Thread joegg
We're having a meetup for Pittsburgh-area Clojure programmers. The first meeting is Wednesday March 10th at 7pm at The Library (on Carson Street). The plan for now is to have shorter talks and presentations, followed by general discussion and possibly some (hopefully fun!) coding. We welcome any