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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,eef681ecd6cdd28c,start X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,eef681ecd6cdd28c,start X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,eef681ecd6cdd28c,start X-Google-Attributes: gidf43e6,public X-Google-ArrivalTime: 1994-09-14 13:06:36 PST Newsgroups: comp.software-eng,comp.lang.eiffel,comp.lang.ada Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!jobone!lynx.unm.edu!usenet.enmu.edu!news From: Jacob Gore Subject: Re: Eiffel gripe (was Ada vs. Eiffel) Sender: news@math.enmu.edu (The Garbage Heap) Message-ID: <1994Sep14.153729.13047@math.enmu.edu> Date: Wed, 14 Sep 1994 15:37:29 GMT References: <355lt8$1vi@network.ucsd.edu> Organization: Eastern New Mexico University, Department of Mathematical Sciences Xref: bga.com comp.software-eng:7492 comp.lang.eiffel:1979 comp.lang.ada:5900 Date: 1994-09-14T15:37:29+00:00 List-Id: Matt Kennel writes > What about Sather's iters? That is the nicest way that I've seen to > do loops. > > All the "init", "step" and "exit" critera are user-programmable in > 'iters', which are written like class routines. > > For example, > > loop > x := collection.elt!; > -- each 'x' is an element of the collection. > end; 1. I don't like it when functions have side-effects. 2. I don't like it when routines alter control in the caller as part of their normal behavior (as opposed to exceptions -- REAL exceptions, not the use of raise/handle pairs as thinly disguised gotos). 3. The above example combines the problems of #1 and #2 above with superb elegance. Jacob --- Jacob Gore, Eastern NM U. Jacob@BlackBox.ENMU.Edu | Jacob@Gore.Com Member of the League for Programming Freedom (LPF)--lpf@uunet.uu.net