From: Jacob Gore <jacob@blackbox.enmu.edu>
Subject: Re: Eiffel gripe (was Ada vs. Eiffel)
Date: Wed, 14 Sep 1994 15:37:29 GMT
Date: 1994-09-14T15:37:29+00:00 [thread overview]
Message-ID: <1994Sep14.153729.13047@math.enmu.edu> (raw)
In-Reply-To: 355lt8$1vi@network.ucsd.edu
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
prev parent reply other threads:[~1994-09-14 15:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <DERWAY.94Aug23180251@alumni.ndc.com>
[not found] ` <DERWAY.94Aug31133058@alumni.ndc.com>
[not found] ` <1994Sep1.094653@lglsun.epfl.ch>
[not found] ` <34473c$ru5@info2.rus.uni-stuttgart.de>
[not found] ` <344isl$brd@Starbase.NeoSoft.COM>
[not found] ` <3450li$t04@disuns2.epfl.ch>
1994-09-06 13:41 ` Ada vs. Eiffel Graham Perkins
[not found] ` <1994Sep4.100449.205@aldur.demon.co.uk>
[not found] ` <34e4rgINNqdg@ephor.tusc.com.au>
1994-09-12 9:35 ` Eiffel gripe (was Ada vs. Eiffel) Matthias Ernst
1994-09-12 13:52 ` Robert Dewar
1994-09-14 2:07 ` Matt Kennel
1994-09-14 15:37 ` Jacob Gore [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox