1

It is not necessary to initialize variables. However, it is not a good practice to do so.

I'm not sure if the sentence i wrote convey the meaning i intend to. What is understood from the sentence above: 'it is good practice to initialize' or 'it is NOT a good practice to initialize'

any help appreciated. Thanks!

1 Answer 1

5

Here, do so substitutes for initialize variables:

It is not necessary to initialize variables. However, it is not a good practice to initialize variables.
It is not necessary to initialize variables. However, it is not a good practice to do so.

But this seems like the opposite of what you intended to say. Let's remove not:

It is not necessary to initialize variables. However, it is a good practice to initialize variables.
It is not necessary to initialize variables. However, it is a good practice to do so.

This seems like what you wanted to say.

2
  • Or of course "it is not a good practice not to do so."
    – oerkelens
    Commented Feb 12, 2014 at 15:43
  • Or "It is not necessary to initialize variables, but it is good practice to do so anyway."
    – Hellion
    Commented Feb 12, 2014 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .