News for hackers. Stuff that matters.
Re:Ask PG: Lisp vs Python (2010) by metageek on Monday October 18, 2010 @03:33PM (#1804807)
That's true; we've already got special cases like WITH-OPEN-FILE.
Re:Ask PG: Lisp vs Python (2010) by masklinn on Monday October 18, 2010 @05:54PM (#1805316)
Actually, you already have something better than RAII in unwind-protect. Just create whatever macro you need on top of that (I'm pretty sure with-open-file is just a macro on top of unwind-protect, Siebel seems to agree in his chapter on files) and you're done.