"Exceptions will fade away in modern languages"

IGotD- nise at nise.com
Fri Nov 27 19:33:32 UTC 2020

On Friday, 27 November 2020 at 12:52:37 UTC, Joseph Rushton 
Wakeling wrote:
> IIRC libraries can specify in their build config if they rely 
> on the stack-unwinding behaviour, so that builds will fail if a 
> downstream requests the abort option (or vice versa).  I 
> believe though that even in the abort case, the parent thread 
> may still be able to catch and recover from an aborted child 
> thread.  See e.g.:
> https://doc.rust-lang.org/nomicon/unwinding.html
> So it's less that Rust has no exceptions, more that they don't 
> _call_ them exceptions, they are not conceptualized as "this is 
> allowed to fail", they don't distinguish different types of 
> such error, and depending on the build config the circumstances 
> in which they are recoverable are more or less constrained.

Does this mean that Rust is dependent on libunwind despite its 
non exception like error handling?

More information about the Digitalmars-d mailing list