comp.lang.ada
 help / color / mirror / Atom feed
From: tarjeij@ulrik.uio.no (Tarjei Jensen)
Subject: Re: Subscript brackets
Date: 1996/05/03
Date: 1996-05-03T00:00:00+00:00	[thread overview]
Message-ID: <TARJEIJ.96May3091420@ulrik.uio.no> (raw)
In-Reply-To: dewar.831031371@schonberg


>In article <dewar.831031371@schonberg> Robert Dewar writes:
>   The argument in favor of parentheses is one of uniformity of reference.
>   An array is, from a mathematical point of view, simply a function.
>   There is a special way of implementing the function efficiently, but
>   since at the abstract level it is a function, it should have the
>   same syntax as a function.
>

Which means that once again one has fallen into the trap of using something
cute instead of waking up to the realities that as far as the programmer is
concerned source code is text and not a mathematical expression.

As far as I am concerned the "orthogonality" is far fetched and an excellent
example of how to carry things too far.

In my opinion one throws away an enhancement to readability by not using square
braces. They would be useful in other situations as well. I prefer array[ n ]
to array( n ) and record = [ field1, field2 ] to record = ( field1, field2 ).

Greetings,
 
--
// Tarjei T. Jensen 
//    tarjeij@ulrik.uio.no || fax +47 51664292  || voice +47 51 85 87 39
//   Support you local rescue centre: GET LOST!
// Working, but not speaking for the Norwegian Hydrographic Service.




  reply	other threads:[~1996-05-03  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-30  0:00 Subscript brackets Michael Talbot-Wilson
1996-05-01  0:00 ` Robert I. Eachus
1996-05-02  0:00 ` Robert Dewar
1996-05-03  0:00   ` Tarjei Jensen [this message]
1996-05-02  0:00 ` Robert A Duff
1996-05-02  0:00   ` Robert Dewar
replies disabled

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