[OT] Is there a real alternative to exceptions ?

Basile B. b2.temp at gmx.com
Fri Jan 17 08:42:52 UTC 2025


On Thursday, 16 January 2025 at 23:04:20 UTC, Dom DiSc wrote:
> On Thursday, 16 January 2025 at 19:02:05 UTC, Basile B. wrote:
>> I have the feeling that things like
>>
>> ```
>> a.map!(mapperFun).reduce!(reducerFun).array;
>> ```
>>
>> is only possible thanks to an exception system.
>
> So, why don't keep using exceptions?
> If you're concerned about GC, try
>
> -preview=dip1008
>
> For me this works like a charm.

I should have said it earlier but the context is another 
programming language than D. At the moment it has no builtin 
error handling system.


More information about the Digitalmars-d mailing list