2 ms·
Something missing from the article: user> (doc with-open) ------------------------- clojure.core/with-open ([bindings & body]) Macro
by arohner 15y ago
Something missing from the article:
user> (doc with-open)
-------------------------
clojure.core/with-open
([bindings & body])
Macro
bindings => [name init ...]
Evaluates body in a try expression with names bound to the values
of the inits, and a finally clause that calls (.close name) on each
name in reverse order.