[Oberon] Oberon Digest, Vol 172, Issue 7

Søren Renner soren.renner at gmail.com
Wed Sep 12 13:33:30 CEST 2018


I would say include the (). Does not matter to the compiler but reduces the
cognitive load on the human reader.

On Wed, Sep 12, 2018 at 6:00 AM, <oberon-request at lists.inf.ethz.ch> wrote:

> Send Oberon mailing list submissions to
>         oberon at lists.inf.ethz.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.inf.ethz.ch/mailman/listinfo/oberon
> or, via email, send a message with subject or body 'help' to
>         oberon-request at lists.inf.ethz.ch
>
> You can reach the person managing the list at
>         oberon-owner at lists.inf.ethz.ch
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Oberon digest..."
>
>
> Today's Topics:
>
>    1. Good practice and style. (peter at easthope.ca)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 11 Sep 2018 11:03:34 -0700
> From: peter at easthope.ca
> To: oberon at lists.inf.ethz.ch
> Subject: [Oberon] Good practice and style.
> Message-ID: <E1fzn0g-000064-2h at xo-53-1d-bb.localdomain>
>
> Hi,
>
> Reference
> https://en.m.wikibooks.org/w/index.php?title=User:PeterEasthope/sandbox&
> mobileaction=toggle_view_mobile#
>
> MarkupOberon() is invoked exactly once in the module.
>
> Two questions.
>
> (1) If language syntax doesn't require parentheses after a procedure
> name when there are no parameters, which is better: include empty
> parentheses or omit?  (Many relevant instances in the cited module.)
>
> (2) Since MarkupOberon is invoked only once, which is better: keep as
> is or incorporate in-line where invoked?  (If MarkupOberon is included
> in-line, MarkupT will become much bigger with deeper indentations.)
>
> Thanks,                             ... Lyall E.
>
> --
> Message composed and transmitted by software designed to avoid the
> need, overhead and vulnerability of antivirus software.
>
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
> Tel: +1 360 639 0202
> http://easthope.ca/Peter.html              Bcc: peter at easthope. ca
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>
>
> ------------------------------
>
> End of Oberon Digest, Vol 172, Issue 7
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180912/15870c4e/attachment.html>


More information about the Oberon mailing list