Live data from Hacker News

Bringing Go's defer statement to Python

musings.yasyf.com

1–2 of 2 posts

Re: Bringing Go's defer statement to Python

#2
Yes Python's syntax is getting conplex anyway, and yes its fun to explore ideas and have fun...

But you can merge multiple context manage-able resources into a single with expression. So the indentation issue isn't that big of an issue, usually. And now the context manage-y bits are separated from my main function.