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: Brian Rogoff Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/25 Message-ID: #1/1 X-Deja-AN: 384590680 References: <6rnhhe$e2u$1@nnrp1.dejanews.com> <6rsg0d$pcj@dfw-ixnews3.ix.netcom.com> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: 904060282 1507 bpr 206.184.139.132 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-25T00:00:00+00:00 List-Id: On 25 Aug 1998, Andi Kleen wrote: > 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 I think ML is what most FPers would call impure, since the MLs that I know of, SML and CAML, both have assignable references. ML is "functional" in that it has higher-order functions, but the designers of ML consciously included assignment. If you look closely, you can see a little bit of ML in Ada-95. -- Brian