std.collection - changing the collection while iterating
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 23 16:05:20 PDT 2015
On Tue, 23 Jun 2015 13:30:52 -0700, Jeremy Powers via Digitalmars-d wrote:
> Well I don't like assertions either, for specifically that reason. An
> error is an error, I don't want something to be caught and handled in
> debug to then be ignored and explode on release. If my release isn't
> checking for it, and subsequently fails, this is now a bug in release
> that was not in debug.
yes. that's why i stopped using simple `assert`, and doing `if (!cond)
assert(0);` in my code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150623/cd4d56e5/attachment.sig>
More information about the Digitalmars-d
mailing list