Re: catching exception error

2009-06-14 Thread peg
Thanks for your answers. I read the thread and understood why I don't get my IllegalArgumentException but a new RuntimeException that wrapps it. But I don't understand what the reason is to create a new RuntimeException (stack tracing?) knowing that IllegalException is a subclass of RuntimeExcep

catching exception error

2009-06-11 Thread peg
Hi clojurians, I was happily clojure-coding whent I tried to catch a exception in a thrown deeply in a function. After looking for the fact that the IllegalArgumentException wasn't catch, I added a catch RuntimeException to my catch list ... and that worked of course. Here is the simplified cas

Re: Santiago Clojurians?

2009-02-03 Thread peg
hi, if I can help ( but for what? ;-) , I know relatively well Santiago, know people there and speak and write spanish (I'm french living in France). Phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" g

Re: map: string keys to symbols

2008-11-26 Thread peg
very elegant ! thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For

map: string keys to symbols

2008-11-26 Thread peg
hi clojurians, I wanted to transform string keys to keyword key so I coded that thing ;-) : (defn string2keyword [mapWithStringsAsKeys] (apply hash-map (mapcat (fn [_] (list (keyword (first _)) (frest _))) mapWithStringsAsKeys))) ; mapcat (1) apply fn to create (:key val) then (2)

Re: French translation of the Clojure rationale

2008-11-22 Thread peg
j'ai oublié ... peut être la traduction d'un article comme celui-ci serait-elle plus démonstrative / pédagogique : http://www.defmacro.org/ramblings/fp.html article référencé ici-même il y a quelques temps On Nov 22, 1:40 pm, peg <[EMAIL PROTECTED]> wrote: > Bonjo

Re: French translation of the Clojure rationale

2008-11-22 Thread peg
Bonjour, Je peux aussi aider à la traduction mais je pense aussi qu'un didacticiel serait bienvenue plutot qu'un introduction générale. Démonstration de l'efficacité par l'exemple. Phil (from Paris) --~--~-~--~~~---~--~~ You received this message because you are su

Re: Clojure Poll 09/2008

2008-09-12 Thread peg
> What are you doing with Clojure? Still learning the language ... trying some java library integration (jboss-JBPM, jboss-drools, apache Camel, Restlet, Freemind) > What 3 features would you most like to see added next? 1) clearer error messages 2) JSON reader form (very close to clojure 's m