[GAP] Question about subprogram syntax
Diego Alonso Cáceres
diego.alonso at upct.es
Tue Feb 21 15:58:09 CET 2006
Hello everyone,
I've been teaching Ada for three years now and often my students make me
the same question:
"Why don't parameter-less subprograms have empty brackets like C or Java?
The code would be easier to read and maintain. It would be also possible to
have a variable and a procedure with the same name."
I really don't what to answer because I think the same. Wasn't Ada thought
as "write once, read many times" or "Ada enhances readability"? Why inherit
this from Pascal?
Have you think about changing it (suppossing using always brackets was a
good idea)? I know the change would make old Ada'95 and Ada'83 code
incompatible and that Ada 200X is going to be an Amendment rather than a
Revision, but still ...
Thank you in advance for your answers.
Diego.
More information about the GAP
mailing list