Hmm, I wonder if eventually all non-primitive type conversions will be done through `TryFrom`, potentially implementing + calling `Try` if it can also be done without errors. Would it be possible to impl TryFrom as `-> Result<NewType, !>` to tell the compiler there's never errs?
It'd make a *lot* of sense that if you implement `Try`, you'd also automatically implement `TryFrom`. Can't think of any legit cases where you wouldn't want that. Not sure what the mechanisms for that would be tho. Sounds like... inheritance? Is this even possible?
-
-
Or is it the other way around: where Try is a blanket impl for `TryFrom<T, !>` ?
-
Lol, figured I might as well look it up. TryFrom<T, !> is defined as a blanket impl for Try. So good! https://doc.rust-lang.org/nightly/src/core/convert.rs.html#481-487 …
End of conversation
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.