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: Andi Kleen Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/25 Message-ID: #1/1 X-Deja-AN: 384564882 Distribution: world Sender: andi@fred.muc.de References: <6rnhhe$e2u$1@nnrp1.dejanews.com> <6rsg0d$pcj@dfw-ixnews3.ix.netcom.com> Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Newsgroups: comp.lang.ada Date: 1998-08-25T00:00:00+00:00 List-Id: Richard D Riehle writes: > > Don't take away my assignment statements, Robert. The help me write > crisp, short code sentences that ordinary mortals can understand. In > fact, as an old time Fortranner, I sometimes write a function that > looks like, > > function F ( ... ) return some-data-type is > Result : some-data-type := initial-value; > begin > Result := algorithmic-part; > return Result; > end F; I think you misunderstand. Even purely functional languages like ML have a way to write this so that you don't have to put the complete program into one expression. What they don't have, and I think that is what Robert was refering to, is a way to cause side effects and change the program state by an assignment. -Andi