From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: <3EB1E0F1.6060908@null.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: , Subject: Re: [9fans] same functions everywhere Date: Fri, 2 May 2003 09:24:12 +0000 Topicbox-Message-UUID: 9d334eda-eacb-11e9-9e20-41e7f4b1d025 rsc@plan9.bell-labs.com wrote: > Given the syntactic weight of C exception > ``libraries'', I'm not convinced they're appropriate > for things like fopen failing. I think it would be > of limited use. The code itself is utterly trivial. Done right, the main advantages are: (a) uniform, tested error handling instead of ad-hoc (b) ensures reasonable default when user neglects to deal with the possibility of failre (c) no need for explicit tests of function error returns Basically, it's a way to impose order on chaos.