2 ms·
Agreed (mostly...it looks more powerful than dataclasses afaict). It looks like it could have a ton of use cases. My concern is that it seems easy to get start
by hansvm 6y ago
Agreed (mostly...it looks more powerful than dataclasses afaict). It looks like it could have a ton of use cases.
My concern is that it seems easy to get started, but metaclass hackery is hard to get right if you do much of it. Maybe that fear is unfounded; have you found that people tend to use it responsibly?
As a small side-note, on the surface I'm not seeing any reason it couldn't be implemented with something more composable like __init_subclass__, and that might be a nice touch.