> (set-opt :development) ; this is what you want
> ...
> (get-opt :show-sql) ; need this flag

hi armando,

this is more of an OO style but as there is no
def- , the state is still accessible from the
outside. also the api is kinda asymetric.

as described in 'the joy of clojure 7.2 -
sharing closure context' closures can be
used for an OO-style encapsulation of state.

looks more functional to me atm.

cheers

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to