[Oberon] Good practice and style.

peter at easthope.ca peter at easthope.ca
Tue Sep 11 20:03:34 CEST 2018


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


More information about the Oberon mailing list