Traits can do this, and a whole bunch of other things, so they are more general than “interfaces” as they allow a lot of general computations to happen in type space.
You would have to pry traits from my cold, dead fingers.
Traits can do this, and a whole bunch of other things, so they are more general than “interfaces” as they allow a lot of general computations to happen in type space.
You would have to pry traits from my cold, dead fingers.