'unwrap envy' and exceptions

IGotD- nise at nise.com
Fri Sep 10 23:20:17 UTC 2021


On Friday, 10 September 2021 at 15:26:18 UTC, Kagamin wrote:
> Nullable doesn't replace exceptions, it specifies a value which 
> is legitimately absent, not due to an error, it's `Result` that 
> replaces exceptions. Also languages built with this pattern in 
> mind have syntax sugar that helps propagate those errors 
> upwards.

Walter mentioned that exceptions are on the way out because they 
are expensive and inhibits the optimizer which are fair points. I 
interpreted this that Walter wants to move away from exceptions 
in D. Since then I haven't seen any proposal for any new error 
handling for D.


More information about the Digitalmars-d mailing list