January 13, 2009
Not The Kind With Sand
The (almost) always entertaining Daily WTF has an article today about my favorite pair of standard C functions, setjmp and longjmp:
If goto is considered harmful, then longjmp() should definitely be considered dangerous. As in, thermo-freakin-nuclear bomb dangerous. Fortunately, its complexity and frequency of use seem to be on par with that of a nuke, and most C developers have not brought it in their everyday. Most.