From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c87bf30faa2b6b X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: [Q] To initialise or not. Date: 1996/04/27 Message-ID: #1/1 X-Deja-AN: 151680765 references: <484274071wnr@diphi.demon.co.uk> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-04-27T00:00:00+00:00 List-Id: "Briefly, the argument for initialising everything is predictability of operation (by avoiding a read of an uninitialised value). The argument against is that giving everything an initial value obscures the fact that some objects *should* be initialised (and the initial value has some significance) and other initialisations are there simply to follow the rule (and the value has no particular significance)." It is a shame to damage the readability and maintainability of code by providing junk initializations. The desire for predictability is however reasonable. There is no good solution in Ada 83. Really pragma Normalize_Scalars is the only satsifactory answer here.