4 ms·
I'm not sure how to contact the author, but just a nitpick: fn inner_main() -> Result<(), ()> should be: fn inner_main() -> Result<!, ()> since it s
by wizzwizz4 7y ago
I'm not sure how to contact the author, but just a nitpick:
fn inner_main() -> Result<(), ()>
should be:
fn inner_main() -> Result<!, ()>
since it shouldn't return except in the case of an error. It's important to make the compiler aware of such semantics, so that it can better optimise the program.
- pvik 7y agoThe author has his email (and twitter handle) in his about page (https://jamesmunns.com/about/ https://jamesmunns.com/about/)
- fra 7y agoHe's super responsive on twitter: https://twitter.com/bitshiftmask https://twitter.com/bitshiftmask
- nemothekid 7y agoI think this is right, but I don't think the never type is stable.
- kibwen 7y agoThe Never type should be stable in 1.41, I believe.
- NieDzejkob 7y agoI checked, and you seem to be right. It feels weird, considering all the jokes that "never is named after its stabilization date"
- monocasa 7y agoThe seamntics of ! is stable as far as I know. It being retconned into the Never type is the unstable bit.