August 08, 2006
An Error You Can't Refuse
It's notoriously easy to ingore the error code returned by a function. Yet exceptions sometimes seem like too blunt an instrument. The concept of mandatory error codes falls somewhere in the middle, encouraging good practice, yet not detonating the process. In "Mandatory Error Codes Revisited," (http://www.ddj.com/dept/cpp/191601612) Guy Peleg modifies Andrei Alexandrescu's idea, fixing a few niggles that made it problematic.
Posted by Kevin Carlson at 02:24 PM Permalink
|