Feedback from the Gripes and Wishes Campaign

Commander Zot no at no.no
Tue May 30 09:13:03 UTC 2023


On Friday, 26 May 2023 at 12:42:41 UTC, FeepingCreature 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.
>
> Go is an unusually atrocious implementation. In a not terrible 
> language, it just looks like `foo()?.bar()?.baz`.

now take the `foo()?.bar()?.baz` example, but change it to log 
which part failed. it only looks simple for the most basic case, 
the second you need to do rollbacks or really anything else this 
approach gets so much more complicated.




More information about the Digitalmars-d mailing list