On Wed, Jul 31, 2013 at 10:47 PM, Tim Starling tstarling@wikimedia.orgwrote:
If the error is serious and unexpected, and likely to cause undesirable behaviour
If this is the case, then you don't use assertions. You would use assertions for things that don't have major side effects on the program, but generally are logically unexpected. You use assertions for things that will only break during development. It's not like the designers of C and Java just blindly put in a way to disable assertions but not exceptions.
*-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science www.whizkidztech.com | tylerromeo@gmail.com