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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-25 06:34:56 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!adsl-213-200-246-247.cybernet.CH!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: Wed, 25 Feb 2004 15:34:14 +0100 Organization: JeLlyFish software Message-ID: <54cp3095jmv8s17h63d4bjdus0tec7l7pt@jellix.jlfencey.com> References: <4020C947.81A6D703@0.0> <1075907239.138068@master.nyc.kbcfp.com> <402232E9.3EE15B4B@0.0> <1075987360.225622@master.nyc.kbcfp.com> <40236C0B.E988E003@0.0> <1077634311.254581@master.nyc.kbcfp.com> <1077718871.47635@master.nyc.kbcfp.com> NNTP-Posting-Host: adsl-213-200-246-247.cybernet.ch (213.200.246.247) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1077719695 53396479 I 213.200.246.247 ([175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:5790 Date: 2004-02-25T15:34:14+01:00 List-Id: Hyman Rosen wrote: >David Starner wrote: >> I think part of it is language philosophy. > >What philosophy requires the retention of a feature >that offers no benefits and can be removed without >affecting legal programs? The philosophy that the semantics of a program should be the same, no matter if you choose to write "f :=3D a + b;" or "f =3D b + a;" instead. With that in mind, it is easier to make someone aware of better writing functions *without* side-effects, which is supposed to be a good thing. :-) BTW, AFAICS and JFTR: C and C++ don't specify evaluation either (I don't know if Java does fix it), except when sequence points are involved. The only difference is that unfortunately all Boolean operations happen to be sequence points here. Vinzent.