Clojure

Scopes

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Add the scope system for dealing with resource lifetime management

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). ]
Alex Miller made changes -
Fix Version/s Approved Backlog [ 10034 ]
Fix Version/s Backlog [ 10035 ]
Alex Miller made changes -
Fix Version/s Backlog [ 10035 ]

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: