Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: comp.lang.c Subject: Re: Multiple Returns Message-ID: <8382@utzoo.UUCP> Date: Thu, 6-Aug-87 14:09:08 EDT Article-I.D.: utzoo.8382 Posted: Thu Aug 6 14:09:08 1987 Date-Received: Thu, 6-Aug-87 14:09:08 EDT References: <8667@brl-adm.ARPA> Organization: U of Toronto Zoology Lines: 15 > There have been several messages posted concerning code with multiple > returns. I am currently going through a two page routine with a return > on almost every other line, and let me tell you, it is nothing but a > mess... It sounds to me like you have diagnosed the problem correctly: the routine is a mess, and probably would be just as much of a mess if the "programmer" who wrote it had used a single return. Nested ifs five levels deep written by an incompetent are no easier to understand than multiple returns written by an incompetent, I assure you. A competent programmer makes either one understandable, although my own tentative opinion is it's a bit easier with multiple returns. -- Support sustained spaceflight: fight | Henry Spencer @ U of Toronto Zoology the soi-disant "Planetary Society"! | {allegra,ihnp4,decvax,utai}!utzoo!henry