News for hackers. Stuff that matters.
Re:Show HN: Rust-Like Traits in Python by homarp on Sunday November 21, 2021 @05:11PM (#29300259)
it's the naming convention that does it.

"Impls have a strict naming convention, like ImplMyTraitForMyStruct. This is used to automate the list of implementations for MyStruct; you don't need to explicitly list any superclasses of MyStruct, just based on the Impl name it will inherit from all relevant Impls."

There are no comments on this comment yet.