[OT] Is there a real alternative to exceptions ?

Basile B. b2.temp at gmx.com
Thu Jan 16 19:37:36 UTC 2025


On Thursday, 16 January 2025 at 19:13:38 UTC, monkyyy wrote:
> On Thursday, 16 January 2025 at 19:02:05 UTC, Basile B. wrote:
>> [...]
>
> 1) add a error code system to the range api
> 2) damn the consequences have fail safe functions(1/0==int.max)
> 3) store errors and extra control flow in my `innate` pattern
> 4) nullable everywhere, range functions can react to nullable 
> elements
> 5) preallocate some space for exceptions, cap the size of 
> exception objects(assuming this is about betterc)

I dont see how that helps to abort when an error happens "in 
between the chain" let's say.


More information about the Digitalmars-d mailing list