4 ms·
I do something similar. You can probably do a similar style in most imperative languages. The key features that make this work in Python are Dataclasses, enums,
by the__alchemist 3y ago
I do something similar. You can probably do a similar style in most imperative languages. The key features that make this work in Python are Dataclasses, enums, and type hints. Pydantic if you're looking for a Serde analog. Struct and enum-oriented programming.