comp.lang.ada
 help / color / mirror / Atom feed
* Subscript brackets
@ 1996-04-30  0:00 Michael Talbot-Wilson
  1996-05-01  0:00 ` Robert I. Eachus
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael Talbot-Wilson @ 1996-04-30  0:00 UTC (permalink / raw)



Are there any plans to convert from parentheses to square brackets
for array subscripts in Ada?

Maybe this is a minor point, and I guess BASIC, PL/I and FORTRAN
programmers think it's better as it is.  (And I guess the use of
parentheses reflects that Ada's heritage is in those languages.)

But C, Pascal, Modula-2 and (if there are any left alive) ALGOL
programmers feel the reverse.  Minor or not, it is a big psycho-
logical hurdle to adjust to something inferior (and even the FAQ
concedes that this is a broken feature) in the name of doing things
better.

A preprocessor which converted just these parentheses to brackets
and left non-array-subscript parentheses alone would allow
existing source to be compiled.  And (I guess) remove the ambiguities
of parsing this feature from the compiler, allowing its cost to
be more clearly seen.

It there any intention of doing this?  Is there any suggested date
when it might happen?  I think some people who would like to convert
to or start working in Ada would like a date to aim at, supposing it
is ever going to happen.

-- Mike




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-05-03  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1996-05-02  0:00 ` Robert A Duff
1996-05-02  0:00   ` Robert Dewar

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