comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Eiffel gripe (was Ada vs. Eiffel)
Date: 12 Sep 1994 09:52:23 -0400
Date: 1994-09-12T09:52:23-04:00	[thread overview]
Message-ID: <351men$ruo@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3517ci$f12@dscomsa.desy.de

If we are on the subject of loop syntax, how about the loop kit for SETL
that I (probably in a fit of over-complex thinking) designed:

init <stuff to do before loop.
doing <stuff to do at start of each loop>
step <stuff to do at end of each loop>
while <condition to test at start of loop>
loop
...
end

within the loop there was both a quit and a continue for early exits to
either outside the loop or the next iteration (actually to the step code)

Well you sure could do anything with that. As in C, one of the powerful
uses of general iteration schemes like this is in connection with macros,
which allow you to do lots of nice things, but are so open to major
abuse that in the final analysis I prefer Ada's approach of excluding
macros as a first class capability (SETL *did* have a powerful macro
facility as well).




  reply	other threads:[~1994-09-12 13:52 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 [this message]
1994-09-14  2:07                   ` Matt Kennel
1994-09-14 15:37                     ` Jacob Gore
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox