draft proposal for Sum Types for D

ryuukk_ ryuukk.dev at gmail.com
Tue Dec 6 20:05:50 UTC 2022


On Tuesday, 6 December 2022 at 18:07:21 UTC, Meta wrote:
> On Tuesday, 6 December 2022 at 14:44:03 UTC, ryuukk_ wrote:
>> Zig and Go does it better, they don't need any "library" 
>> "reflection" "metaprogramming", i would never use a language 
>> that needs a library to work with errors, it's tasteless
>
> Let's get one thing clear in this thread, if nothing else: the 
> Go error handling model is not one that anyone should be 
> copying. It's verbose, unsafe, dysfunctional, and nobody should 
> be pointing to it as an example of good design.

I agree with you, i was referring to having error as built-in as 
opposed to having them as library, but i missed the "to enhance 
them" part



More information about the Digitalmars-d mailing list