Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> What exactly is the problem with __init__ or __new__? @dataclass is very nice syntactic sugar, but are we arguing here that having access to initializer/allocator/constructor dunder methods is "legacy ugliness"?

My read was that the "ugliness" was in the method naming, and specifically the double underscores, not the availability of the methods themselves.



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

Search: