Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

None of this has anything bad to say about coercion or fallback, it's a consequence of the fact that Rust is an expression-oriented language which had expressions (like `loop {}`) which logically evaluated to the never type when in return position, and yet did not have the machinery in place to support it as a proper concept anywhere outside of return position, and so they chose the unit type as a relatively benign alternative in those contexts, which caused no problems whatsoever until the day came when they decided to actually implement the never type.
 help



> so they chose the unit type as a relatively benign alternative in those contexts

This is what the article defines as fallback. So the issue has everything to do with fallback.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: