Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: Functions returning Error codes or actual info Message-ID: <20862:Sep1115:35:4390@kramden.acf.nyu.edu> Date: 11 Sep 90 15:35:43 GMT References: <772@babcock.cerc.wvu.wvnet.edu> <3723@goanna.cs.rmit.oz.au> Organization: IR Lines: 11 In article <3723@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes: > Functions are _much_ more flexible than returning error codes. Well, not really; exception handlers can always be implemented with straight error codes and some ugly syntax. It's just more efficient, and easier for both the compiler and the programmer to deal with, when the language supports exceptions as a program construct. (That means more than Ada's wimpy one-handler-per-function stuff.) ---Dan ``Ada isn't a religion. Ada is a disease.'' HJB