Skip to content

Comment on An Introduction to Condition Handling for Non-Lispersparent

Comments

We are not talking "condition" from Lisp here, but the blog post that is linked to this thread. And what the author is doing is asking for a "with" statement without knowing that the feature is already there. "condition" might be a powerful feature and I might even like it myself, but the post doesn't show the power of "condition" to Pythoners, because the feature used in the example already exists in the core language.

> We are not talking "condition" from Lisp here

Of course we are.

> And what the author is doing is asking for a "with" statement

No, he most definitely is not, a with statement (or Common Lisp's version, `unwind-protect`) does not provide resuming, only restoring a previously-stored context.

> the post doesn't show the power of "condition" to Pythoners, because the feature used in the example already exists in the core language.

You should try reading the post again rather than stop at the first paragraph, because you're wrong.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.