I think what I want is specialization in Rust. But I'm not sure if that's actually what I want. E.g. I want to be able to define some method. But then if certain conditions apply define a different, more efficient method with the same signature. That's... specialization right?
-
-
the pattern matching on this is hard to decide in general though
-
clearly, multiple impls could match if this were allowed and you would need rules for picking one of them, and then you get into the equivalent of a CSS selector specificity fight
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.