On Tue, Jun 23, 2015 at 12:31 PM, Jonathan M Davis via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
> On Tuesday, 23 June 2015 at 19:13:43 UTC, Jeremy Powers wrote: > >> Different behavior between release and non is not something to be desired. >> > > It's perfectly normal if we're talking about assertions, but in that case, > it's an AssertError being thrown, not a normal exception. So, in either > case, it's a logic error; it's just that you get better reporting of it in > debug mode than in release and don't have the cost of doing the checking in > release. > > 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. I realize other people have different views on this.