I think Associative Array should throw Exception
Adam D. Ruppe
destructionator at gmail.com
Tue Sep 1 19:19:44 UTC 2020
On Tuesday, 1 September 2020 at 18:55:20 UTC, Steven
Schveighoffer wrote:
> This is the big sticking point -- code that is nothrow would no
> longer be able to use AAs. It makes the idea, unfortunately, a
> non-starter.
You could always catch it though.
But I kinda like things the way they are exactly because you can
check with the in operator ahead of time. Or the .get helper
method is pretty convenient too.
More information about the Digitalmars-d-learn
mailing list