
1 Jun
2005
1 Jun
'05
7:24 p.m.
Rob Stewart wrote:
From: Neal Becker <ndbecker2@gmail.com>
I still disagree. Depending on default initialization is like depending on init of static variables to 0. If you really need a special init value, be explicit and say so. I see no logic to the default construct of complex to
What's wrong with relying on static initialization to get you a zero?
Explicit is better than implicit. Have sympathy for those that must read the code. If you require something to be initialized, say so. Don't leave it to the reader to guess whether it had to be initialized to zero, or just was by accident.