Re:Writing Python like it's Rust
by oefrha on Sunday May 21, 2023 @05:35AM
(#36019266)
Factory methods should be class methods if the class is meant to be inherited from. Since most classes people write day to day aren’t going to be inherited from, ever, the distinction is irrelevant for the most part. I doubt they have a particular reason for choosing the less extensible option.
[ Parent
| on HN ]
There are no comments on this comment yet.