3 ms·
> That's what "with" is for. Python's "with" clauses, unusually, play well with exceptions at scope exit. [...] Very few languages get this right. I wonder if
by patrec 6y ago
> That's what "with" is for. Python's "with" clauses, unusually, play well with exceptions at scope exit. [...] Very few languages get this right.
I wonder if I'm missing something subtle here. What languages with garbage collection, exceptions and higher order functions get this wrong? I'd expect this to work fine in common lisp, smalltalk, ruby, or pretty much anything else that offers a similar idiom -- either by macros or by passing thunks.