4 ms·
I'd get what I import (explicitly). If I import conflicting extensions then its my fault for doing so and (only) my program fails to compile.
by lf-non 3y ago
I'd get what I import (explicitly). If I import conflicting extensions then its my fault for doing so and (only) my program fails to compile.
- conradludgate 3y agoYou cannot import specific inherent methods. What you can do though is use the extension trait concept and import those traits. If you import both traits you get an ambiguous function error and are asked to resolve which trait you want `<Goose as noises::Trait>::fudge(...)`.
- lf-non 3y agoAh, I was not aware of extension traits. Thanks for pointing out.