From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/24 Message-ID: <6rs6is$6ck$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 384236707 References: <6rnh8p$dno$1@nnrp1.dejanews.com> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Aug 24 17:06:36 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I) Date: 1998-08-24T00:00:00+00:00 List-Id: In article <6rnh8p$dno$1@nnrp1.dejanews.com>, dewar@gnat.com wrote: > <<> Good point. Typically in this case I would "cheat" it and embed the inside > of > > the loop in a subprogram, with a return statement. . . . >> > ... > A return *is* a goto statement, so is an exit statement. They are both > reasonably well disciplined goto statements, so this means they are neither > better nor worse than corresponding disciplined use of goto. Perhaps. But two years from now the maintainer will have no clue how "disciplined" I am being with that goto, without reading every line of code to make sure. This whole line of reasoning makes me very uncomfortable, as it has a striking similarity to the arguments I used to hear against strong-typing. After all, a disciplined software engineer won't need strong-typing either, right? It will just get in his way. > It is like an alcoholic thinking it is OK to put fruit and yeast in a pot > and drink it months later, because, after all, no alcohol was put in the > pot :-) Geez. I see your point. I guess I do tend to horribly abuse exit and return. Perhaps I need to start going to the meetings again. :-) -- T.E.D. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum