Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That looks like Common Lisp, which also has a general version named unwind-protect: http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec...


Not really. unwind-protect is just Lisp's version of Java's "finally" statement.


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: