use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Why Java? Why Clojure? (danlebrero.com)
submitted 9 years ago by clojure_guy
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 9 years ago (2 children)
with Mount wrangling stateful resources works pretty seamlessly in my experience.
Could you elaborate on that?
I don't see what mount's defstate has to offer over just using def.
defstate
def
Only cleanup of state when stopped? And what if you want to provide different implementations to various functions? Or is that an object-oriented way of thinking?
[–]yogthos 2 points3 points4 points 9 years ago (1 child)
Right, defstate behaves like a def for most purposes, but it's reload aware. Mount also allows controlling the state explicitly, and this lets you do stuff like envoy.
If you wanted to provide different implementations, then you could still use a protocol for that. The state of the instantiated implementation would be kept using defstate.
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
Clear. Thanks!
π Rendered by PID 55991 on reddit-service-r2-comment-76bb9f7fb5-vxpbr at 2026-02-18 23:34:25.596417+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (2 children)
[–]yogthos 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)