3 ms·
apparently it indicates divergence, i.e. the function does not return at all. Very interesting, I've never seen the notation before.
by webkike 10y ago
apparently it indicates divergence, i.e. the function does not return at all. Very interesting, I've never seen the notation before.
- phil-opp 10y agoSee https://doc.rust-lang.org/book/functions.html#diverging-functions https://doc.rust-lang.org/book/functions.html#diverging-func... and https://doc.rust-lang.org/reference.html#diverging-functions https://doc.rust-lang.org/reference.html#diverging-functions
- Gankro 10y agoSwift encodes this with a noreturn attribute, and I think it's a "standard not standard" C attribute as well. (in case you were wondering who else does this)
- alexbock 10y ago_Noreturn is a standard keyword in C11. C++11 has a standard attribute called [[noreturn]].