Re: [Oberon] Oberon Digest, Vol 165, Issue 5
However, if this is the line of argumentation, it is hard to see why access to intermediate *variables* should be considered bad programming
Andreas Pirklbauer wrote: practice, while access to intermediate *constants* or *types* should not. But there actually is a difference between variables on one side and constants and types on another side. The difference is that one can change the value of a variable after it is defined, but once a constant or a type is defined, it can not be changed, it simply does not have a value to change. This does not however mean that a programmer can't change the type declaration itself in some time in the future, but is it really a problem? Changing a variable's value from an unexpected place in the program is a problem.
participants (1)
-
Артур Ефимов