In said:
No, we're discussing C. Psychology is down the hall.
Quite so.
If, we're discussing C, and from the C point of view the order doesn't
matter, then why do you insist that *for you* one order is better than
the other? It seems to me that we're discussing more than just C, here.
True enough, and I accept that there is a minor readability hit on
const==var for /some/ people, but I consider the benefit (of avoiding a
subtle error) to outweigh the cost. Obviously, you disagree.
Obviously, since the "subtle" error can be *trivially* avoided at NO
readability hit for anybody.
Just over 14 years. How about you?
There is no point in playing idiotic semantic games with me. If you truly
consider yourself a beginner, making a major contribution to a C book was
dishonest. Did you introduce yourself as a C beginner at the beginning of
the book in question, to warn your readers?
As a matter of fact, I can. Sometimes my fingers and/or keyboard can't,
though.
I was not aware that you were typing your code with your eyes closed.
What do you think I meant by "triple checking"?
Wrong. It's not impossible at all.
It is, after the triple checking.
The brain is often too busy to notice minor typos.
While typing code, it should be busy checking its correctness...
Why not help the compiler
to pick up as many as it can? It seems perfectly logical to me.
Because it creates bad habits. If you do the checking yourself, you don't
need to "help" the compiler, if you get used on helping the compiler you
get (unconsciously) less careful when typing the code, just as I get
myself unconsciously less careful when I know that the compiler *must*
catch my mistakes. It's human nature, whether we discuss here C or not.
Both of us have proved the previous paragraph, with mistakes in pieces of
code we have actually posted, so your disagreement is futile.
Dan