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: dewar@gnat.com Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/22 Message-ID: <6rnhhe$e2u$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 383738333 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Aug 22 22:42:54 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-08-22T00:00:00+00:00 List-Id: <> No, it is a huge advantage of return over a *bad* use of goto. But nearly every feature in a language can be badly misused. We didn't eliminate assignments from Ada, even though they can be (and are all the time) horribly misused, and even though we know perfectly well that you can write programs with no assignments with no loss in expressive power. Instead we left in the assignment, and wise programmers use it to improve the clarity of their programs, and foolish programmers create havoc with it (by the way most programmers furiously overuse assignments, and it is far too common to see a variable assignment used to establish a constant value -- of course languages like traditional C which have no capability for defining constants aggravate the problem!) The goto is the same, wise programmers use it occasionally to clarify their code, foolish programmers create havoc with it (although this happens less often, since people are FAR more aware of the goto danger than the assignment danger). Fanatics in both cases decry straying from the pure road (yes there are plenty of people who consider an assignment statement as just as evil as a goto, and would not dream of using either :-) -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum