comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Valued procedures
Date: 1999/01/22
Date: 1999-01-22T00:00:00+00:00	[thread overview]
Message-ID: <F5yzEt.5xB.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 7888jd$bln$1@nnrp1.dejanews.com

adam@irvine.com wrote:

: >     function SideEffect (X: in out State) return Boolean;   -- Invalid

: To answer your question: yes, it was considered.  In fact, I recall seeing
: essentially your proposal in early drafts of the Ada language (around 1980 or
: 1981), before the standard was finalized.  I don't know why this feature was
: removed in the final version---perhaps someone can enlighten us?  (I'm not
: saying I miss this feature; I prefer not to have variables buried in the
: middle of an expression changing their values, but that's just my personal
: preference.)

You answered your own question.  Many people "prefer not to have
variables buried in the middle of an expression change their values."

Ada has consistently favored readability/understandability over saving
a few keystrokes.  That characteristic certainly can be annoying at 
times, though, but it tends to be pretty pleasant a week or two after 
you write the code, and you are trying to remember how it works ;-)

: 				-- Adam

--
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~1999-01-22  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-21  0:00 Valued procedures dmitry6243
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` dennison
1999-01-21  0:00   ` robert_dewar
1999-01-21  0:00     ` dennison
1999-01-25  0:00   ` dmitry6243
1999-01-25  0:00     ` robert_dewar
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` Tom Moran
1999-01-21  0:00 ` adam
1999-01-22  0:00   ` Tucker Taft [this message]
1999-01-22  0:00   ` adam
replies disabled

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