Hi, Am 23.07.2009 um 18:24 schrieb Laurent PETIT:
Hello, I want to call set! several times on a same instance, e.g. : (let [instance (SomeBeanCtor.)] (set! (. instance field1) expr1) (set! (. instance field2) expr2) ...) Do you know if a macro simplifying this already exists ?
How about that? (untested) (doto (SomeBeanCtor.) (-> .field1 (set! expr1)) (-> .field2 (set! expr2)) ... (-> fieldN (set! exprN))) Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature