2 ms·
Honestly I feel like even metaclasses are overused, where class decorators would often suffice.
by zahlman 11mo ago
Honestly I feel like even metaclasses are overused, where class decorators would often suffice.
- zephen 11mo agoThat's probably true, but there are a few reasons for it: - Face it, decorator syntax is kinda ugly - History. Decorator syntax is new - For things which will be repeatedly subclassed, the metaclass automagically tags along But it's almost certainly easier for a maintainer to look at a decorated class and figure out what's going on.