[OT] Is there a real alternative to exceptions ?

Dom DiSc dominikus at scherkl.de
Thu Jan 16 23:04:20 UTC 2025


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.


More information about the Digitalmars-d mailing list