First Impressions!

ketmar ketmar at ketmar.no-ip.org
Tue Nov 28 04:26:08 UTC 2017


A Guy With an Opinion wrote:

> Eh...I still don't agree.
anyway, it is something that won't be changed, 'cause there may be code 
that rely on current default values.

i'm not really trying to change your mind, i just tried to give a rationale 
behind the choice. that's why `char.init` is 255 too, not zero.

still, explicit variable initialization looks better for me. with default 
init, it is hard to say if the author just forget to initialize a variable, 
and it happens to work, or he knows about the default value and used it. 
and the reader don't have to guess what default value is.


More information about the Digitalmars-d mailing list