Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Assertions

Name: Anonymous 2011-08-16 8:54

I don't understand what's the point of assertions? Shouldn't unexpected cases be treated with proper error handling?

Name: Anonymous 2011-08-16 11:22

When interfacing with other systems, you often do not know the whole value range of data in advance, or even what to do with a certain data value. Assertions help during development in such cases, as you can easily leave an assertion in places you are uncertain of, and come back later after your program crashed to examine the unexpected values.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List