[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "static" declaration

raganwald@yahoo.com wrote:

>Looking back over my experience with reading code and finding bugs, I
>have come to a rather unexpected conclusion:
>First, declaring variables is essential, but declaring type is not.
>This eliminates the common bug of introducing a new variable with a
>Second, declaing how a variable is to be used is much more important
>than declaring what a variable is. For example, in C++, const
>correctness is much more powerful than strong typing.
Interesting.  Is it the same whether you're looking at your own code or 
that of others?