Re: How to catch exception and keep looping?

2010-02-12 Thread Michał Kwiatkowski
2010/2/12 Konrad Kułakowski kulakow...@gmail.com: I have a piece of code like this: (def ll ['a 'b 'c 'd]) (loop [e (first ll) f (rest ll)]  (do    (try       (do          (println e) ;; do sth with e which may throw an exception          (recur (first f) (rest f)))      (catch

Re: [ANN] clj-peg v0.6 released

2010-01-07 Thread Michał Kwiatkowski
On Mon, Jan 4, 2010 at 11:27 PM, Richard Lyman richard.ly...@gmail.com wrote: This project adds support in Clojure for Parsing Expression Grammars. You'll be able to write pseudo-ebnfs directly in your Clojure code. Sounds nice, but where's the source code? Cheers, mk -- You received this

Re: agents + repl?

2009-07-01 Thread Michał Kwiatkowski
On Wed, Jul 1, 2009 at 9:43 AM, Raoul Duke rao...@gmail.com wrote: while trying to understand the graphics animation code from ants.clj, i tried this simpler code, but when i run the code below in the repl, i don't see the .s until i evaluate something afterwards; then they get flushed to the