Comment on UndefinedBehaviorSanitizer's Unexpected BehaviorparentComments−pjmlp1yDoesn't matter how common, the feature is there, and although we aren't yet that far, might even differ across implementations.Also trait inheritance exists, enforced via trait bounds, what Rust doesn't support is class inheritance.−School-Cotton1yDoesn't matter how commonYes it does, if your concern is “how often do I encounter code where I can’t predict or control what it actually does on the hardware”.−pjmlp1yAny time there is a compiler implementation that has to provide support for translating such features into machine code.
Comments
Doesn't matter how common, the feature is there, and although we aren't yet that far, might even differ across implementations.
Also trait inheritance exists, enforced via trait bounds, what Rust doesn't support is class inheritance.
Yes it does, if your concern is “how often do I encounter code where I can’t predict or control what it actually does on the hardware”.
Any time there is a compiler implementation that has to provide support for translating such features into machine code.