Feedback from the Gripes and Wishes Campaign
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri May 26 13:33:16 UTC 2023
On 27/05/2023 1:28 AM, Max Samukha wrote:
> On Friday, 26 May 2023 at 12:42:41 UTC, FeepingCreature wrote:
>> Go is an unusually atrocious implementation. In a not terrible
>> language, it just looks like `foo()?.bar()?.baz`.
>
> The whole point of exceptions was to remove that kind of syntactic
> noise. I still don't understand why people want to throw away the
> convenience instead of fixing problems it has.
Replacement of the exception mechanism does not imply replacing
exception syntax.
You can still have throw/try/catch syntax and use sumtypes to return a
value or exceptions structs.
I.e.
https://github.com/rikkimax/DIPs/blob/value_type_exceptions/DIPs/DIP1xxx-RC.md
More information about the Digitalmars-d
mailing list