Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: linux issues (using C case sensitivity???)

Author: Miguel A. Ballicora

Date: 19:00:07 05/23/02

Go up one level in this thread


On May 23, 2002 at 21:03:31, Keith Evans wrote:

>On May 22, 2002 at 21:04:12, Robert Hyatt wrote:
>
>>
>>Do you not use case-sensitivity in your C programming?  I hope so to make it
>>more _readable_.  I certainly do.
>>
>
>How do you use case sensitivity to write more readable code? I can see using
>both upper and lower case, but taking advantage of case sensitivity doesn't
>necessarily seem like a good idea.

Yes it is a good idea. For instance, macros are generally used in capital
letters to warn you about their problems. Many people use types in capital
letters. Case sensitivity helps the compiler to keep you honest.

>char *pointer;
>long *Pointer;

you can do this if you like, a matter of taste, but case sensitivity allows you.

typedef void * POINTER;
POINTER pointer;

same with structure tags etc.

Miguel



>Would you really do something like that? I don't get it.
>
>Regards,
>Keith



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.