3 ms·
A Programming Idiom You've Never Heard of (2012)
- version_five 5y agoIt looks like what is captured in the with ... as syntax in python.
- dragonwriter 5y agoPython context managers seem to be sort of a decoupled relative of this. Where this paints the inverse as a feature of the “positive” function, context maangers could conceivably support having many different context managers with the same entrance function and different exit functions.