[Oberon] Clarifying type compatibility in Oberon-07

Richard Hable informujo at aon.at
Sun Oct 8 14:10:13 CEST 2017


On 2017-10-08 13:55, Jörg wrote:
> No.
> If we allow anonymous procedures, you don't have to declare parameters again. They are stated in RealFunction already.
> It should be enough to write
>   Integral ( RealFunction(RETURN Math.sin(v)), 0.0, Math.pi));

This is a matter of taste. In my opinion, omitting formal parameter
names in anonymous functions makes source code difficult to read.

Richard


More information about the Oberon mailing list