Feedback from the Gripes and Wishes Campaign

ryuukk_ ryuukk.dev at gmail.com
Fri May 26 16:06:51 UTC 2023


On Friday, 26 May 2023 at 15:59:54 UTC, ryuukk_ wrote:
> On Thursday, 25 May 2023 at 15:36:38 UTC, Commander Zot wrote:
>> On Friday, 19 May 2023 at 15:58:25 UTC, ryuukk_ wrote:
>>>
>>> For example:
>>>
>>> - **exception handing**: why use EH when you can have your 
>>> function return 2 values (error and result)
>>
>> oh god no. it leads to horrible code. just take a look at go.
>
> That's not the point
>
> Some platform doesn't have EH, and some projects ban the use of 
> EH
>
> If you want things to make it nicer than look at Zig/Swift and 
> have a mechanism to bubble things up
>
> The point is the feature and what it allows/enable, the syntax 
> is second, let's agree on the idea first

And btw Go will improve it, they have a Go2 proposal going, so 
your point is already invalid

Odin is also another nice example of proper error handling


More information about the Digitalmars-d mailing list