Take the 2-minute tour ×
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
Or of course "it is not a good practice not to do so." –  oerkelens Feb 12 at 15:43
    
Or "It is not necessary to initialize variables, but it is good practice to do so anyway." –  Hellion Feb 12 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.