« Return to Thread: Coding standards question

Re: Coding standards question

by Victor Kane-2 :: Rate this Message:

Reply to Author | View in Thread

The other reason it's always best to include the ";" is that you can add statements after it easily, and/or move that statement around without having to worry about adding an ';'.

There is a similar question with the "," of the last array member.

Victor Kane
http://awebfactory.com.ar

On Sat, Jun 6, 2009 at 9:49 PM, Earnie Boyd <earnie@...> wrote:
Quoting Pierre Rineau <pierre.rineau@...>:

I usually write the ";", because I do a lot of development, and for me,
it has no sens to write an instruction without this to end it.

But, as without it works, do what you want. Some people may say that it
might be less readable, I just think this is more consistent to write it
down.


It might not always work depending on the order of statements and the order of included files.  Always include the ';' to end the statement is the best choice.

--
Earnie
-- http://r-feed.com/           -- http://for-my-kids.com/
-- http://www.4offer.biz/       -- http://give-me-an-offer.com/



 « Return to Thread: Coding standards question