Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
prodigal_erik
on Jan 4, 2012
|
parent
|
context
|
favorite
| on:
A Programming Idiom You've Never Heard Of
That looks like Common Lisp, which also has a general version named unwind-protect:
http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec...
SeanLuke
on Jan 4, 2012
[–]
Not really. unwind-protect is just Lisp's version of Java's "finally" statement.
prodigal_erik
on Jan 4, 2012
|
parent
[–]
Oh you're right, it'd need to take a param with the setup form(s) and somehow look up the corresponding cleanup form(s), sort of like getter and setter code registered with setf.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: