DIP76: Autodecode Should Not Throw
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Mon Apr 6 21:08:09 PDT 2015
On Tuesday, 7 April 2015 at 04:05:38 UTC, Vladimir Panteleev
wrote:
> On Tuesday, 7 April 2015 at 03:17:26 UTC, Walter Bright wrote:
>> http://wiki.dlang.org/DIP76
>
> I am against this. It can lead to silent irreversible data
> corruption.
Instead, I would like to suggest promoting the use of `handle`
and the like:
http://dlang.org/phobos/std_exception.html#handle
This way, code that needs to be nothrow can opt in to be nothrow
via such composition, which is also aligned with that introducing
the risk of silent data corruption needing to be opt-in.
More information about the Digitalmars-d
mailing list