comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Modest proposal, 2 of 3
Date: 1996/11/23
Date: 1996-11-23T00:00:00+00:00	[thread overview]
Message-ID: <dewar.848786910@merv> (raw)
In-Reply-To: 575ag6$rt6@netline-fddi.jpl.nasa.gov


Van Snyder says

"Thus, a variable that a package publishes with "out" mode has the same
properties as a private variable with a public parameterless function to
access it, and no procedure to update it directly.  But it's more
efficient, and there's less code to write initially, and therefore less
to read and understand when you're the poor schmo assigned to make the
next minor change."


The "more efficient" part of this is completely bogus, since inlining
of the relevant function will eliminate any efficiency overhead.

Personally I do not like the idea of adding out as a keyword to variables,
it would encourage the use of global variables, and global variables are
almost always a bad idea in a language with thread support! I find the
worry about saving a few lines of code here to be a very weak argument.






  reply	other threads:[~1996-11-23  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-22  0:00 Modest proposal, 2 of 3 Van Snyder
1996-11-23  0:00 ` Robert Dewar [this message]
1996-11-25  0:00 ` Norman H. Cohen
1996-11-26  0:00   ` Ken Garlington
1996-11-28  0:00   ` Richard A. O'Keefe
1996-11-26  0:00 ` Tucker Taft
replies disabled

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