[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).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon