Comment

Comment by aidenn0

How about file-like objects in python? Many file-like interfaces are necessarily stateful, and having the state wrapped in an object that encapsulates the state allows for graceful reuse.

As a bonus, there's no need for inheritance in python due to duck typing.

parent aidenn0 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton