comp.lang.c
[Top] [All Lists]

Re: Mixed case?

Subject: Re: Mixed case?
From: "Default User"
Date: 30 Apr 2008 20:29:14 GMT
Newsgroups: comp.lang.c

s0suk3@xxxxxxxxx wrote:

> I'm totally new to C, so this is a question from a total newbie. I
> know most people write the names in C with underscores,
> as_in_this_name. But... is it also customary to write them in mixed
> case, asWithThisName? Or is it a horrible horrible horrible thing to
> do??

So-called "camel-case" isn't as traditional in C. I've seen in more
often in C++. That being said, when I worked on a major project at my
company in the mid-90s, the coding standard mandated camel-case rather
than underscores. It doesn't really matter to me in writing or reading
code which one is used. It's another case where consistency is probably
more important.



Brian

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy