[Oberon] R: Should one automatically initalize local pointer or procedure variables (safety precaution)?

Till Oliver Knoll till.oliver.knoll at gmail.com
Tue Mar 5 10:16:55 CET 2019



> Am 05.03.2019 um 09:06 schrieb "ferrari_stefano at alice.it" <ferrari_stefano at alice.it>:
> 
> 
> IMHO automatic pointer initialization is agianst the Oberon spirit not to have hidden features.

Not only against „hidden features“, but also against the strict declare-initialise-use paradigm emphasised by Niklaus Wirth ;) And also somewhat against „locality of code“, as you should „initialise your variables as late as possible (but not later)“, or in other words: initialisation should happen as close as possible to actual use (e.g. right before some loop).

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20190305/ed08e3ba/attachment.html>


More information about the Oberon mailing list