Details
-
Type:
Enhancement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Approved Backlog
-
Component/s: None
-
Labels:None
Description
Add the scope system for dealing with resource lifetime management
Attachments
Activity
Stuart Halloway
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | scopes-spike.patch [ 10275 ] | |
| Reporter | Assembla Importer [ importer ] | |
| Priority | Major [ 3 ] |
Kevin Downey
made changes -
| Comment |
[ I know the patch is just a demo, but it does restrict scopes to only dealing with closeables vs. what is demoed at http://paste.lisp.org/display/73838
the patch also doesn't contain the notion of different kinds of clean up to run depending on how you exit from a scope (exception, normal, either) I have a little code I wrote inspired by the gist above, unfortunately I checked it into clojurebot and never bothered to spin it off into a library otherwise it might have seen some use in the wild https://github.com/hiredman/clojurebot/blob/master/src/hiredman/horizon.clj (sorry for the formatting). ] |