[GAP] Question about subprogram syntax

Robert Dewar dewar at adacore.com
Tue Feb 21 21:40:08 CET 2006


Anthony S Ruocco wrote:

> Personally, I cant see the need for parameter-free subprograms.  Functions and procedures should manipulate something.  And if they are going to manipulate something, then we should control what they manipulate - hence use parameters and at least contain the blast zone.

So you really want us to always have to write

   New_Line (Standard_Output);

instead of

   New_Line;

seems heavy to me.

Parameterless procedures are very common in programs, especially
if you are using them for top down refinement. The example I gave
above is of course for the bottom up style, which is really more
what your comment seemed to relate to.



More information about the GAP mailing list