Phobos 3 Discussion Notes - 02-01-2024

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Sat Feb 3 12:40:28 UTC 2024


On Saturday, 3 February 2024 at 11:54:48 UTC, ryuukk_ wrote:
>
> Oh, and Exception Handling?
>
> Get in native tuple and tagged union in the language, and 
> you'll be able to build nice error handling code
>
> I hope no EH in Phobos 3

Existing try catch syntax could be improved to support tagged 
union you've mentioned btw.  Compiler then would inject extra 
code on each statement that returns a tagged union to 
automatically forward to appropriate catch clause, if an 
exception is returned from said statement.


More information about the Digitalmars-d mailing list