Phobos 3 Discussion Notes - 02-01-2024
Atila Neves
atila.neves at gmail.com
Mon Feb 5 14:41:28 UTC 2024
On Sunday, 4 February 2024 at 01:14:56 UTC, Adam Wilson wrote:
> 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
>
> The EH problem has two potential answers.
Three: copy Herb Sutter's idea.
> The first is the sumtype answer. That would be zero runtime
> cost and would achieve a similar result as the current EH
> scheme.
Not unless we solve the "bubbling up" issue to avoid pattern
matching over and over again when none of the N functions in the
call stack between `main` and the one "throwing" care. So far all
I know of is Rust's `?` and monads.
More information about the Digitalmars-d
mailing list