in reply to Re^2: declare and init a scalar
in thread declare and init a scalar

Sometimes debugging a weird bug is easier than arguing with the reviewers.

I agree! But...debugging is about finding errors; if you arbitrarily disable the diagnostics that will tell where the error originates you make life much harder.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^4: declare and init a scalar
by RonW (Parson) on Jan 23, 2015 at 01:11 UTC

    Not so much as disabling a diagnostic as "circumventing" it.

    On the other hand, if the coder knowingly initializes a variable that could better be left undefined, she/he can make note of it, preferably in the code and in a way that doesn't panic the code reviewers.