Hacker News new | past | comments | ask | show | jobs | submit login

The main problem with this approach is that it conflates type hierarchies (through class inheritance) with developer convenience; there are reasons why both attrs and dataclasses chose the decorator approach.



I might quibble at calling this a "problem".

Every ingredient in the rack is spice. There is a "proper" amount to use for the recipe. Let good taste be the guide. Never go Full [language I like to drag].




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: