Comment

Comment by DanWaterworth

Python's "with" construct is analogous to the bracket pattern in Haskell that the article is talking about. It also works in the nested case in the presence of exceptions. Furthermore, the issue that Michael has with the bracket pattern in Haskell can also happen in Python.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton