comp.lang.ada
 help / color / mirror / Atom feed
From: franka@mmintl.UUCP (Frank Adams)
Subject: Ada errors with =>
Date: Fri, 31-Jan-86 17:02:46 EST	[thread overview]
Date: Fri Jan 31 17:02:46 1986
Message-ID: <1124@mmintl.UUCP> (raw)
In-Reply-To: 1613@wanginst.UUCP

John Goodenough has noted in his survey that the use of the => operator
tends to cause problems for those who are new to Ada.  This is accompanied
by a perception that it is used differently in different contexts.  I
believe this perception is incorrect; the use of the symbol is completely
uniform.  In general, its use in the form <name> => <value>.

Why, then, do people have so much trouble with it?  (And I had trouble with
it, too, when I first encountered it.)  The answer, I maintain, is because
the symbol looks like an arrow, and that arrow points in the wrong direction.

An arrow looks like an assignment, and we assign values to names, not vice
versa.

Since <= is not available, I think a direction neutral symbol, perhaps ==,
would have been a better choice.  It is perhaps too late to make this change
now; on the other hand, perhaps later versions of the language could support
it as an alternative.

Frank Adams                           ihpn4!philabs!pwa-b!mmintl!franka
Multimate International    52 Oakland Ave North    E. Hartford, CT 06108

  reply	other threads:[~1986-01-31 22:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-01-28 17:58 Ada programmer errors (an update) John Goodenough
1986-01-31 22:02 ` Frank Adams [this message]
1986-02-07 21:48   ` Ada errors with => Christopher Byrnes
replies disabled

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