@safe D requires which DIP switches?
bauss
jj_1337 at live.dk
Fri Jan 7 08:46:27 UTC 2022
On Friday, 7 January 2022 at 08:39:25 UTC, Atila Neves wrote:
>
> Another option is making it so pure functions can't throw, but
> that also probably introduces a lot of breakage.
It would be a somewhat correct approach, because while in theory
you can throw from pure functions, then you violate the purity by
observing the thrown exception.
So it doesn't really make much sense to throw in a pure function
in itself, as using the exception will be a direct violation of
purity.
More information about the Digitalmars-d
mailing list