Re: Mixed case?



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
.



Relevant Pages

  • Re: Mixed case?
    ... John Bode wrote: ... case, asWithThisName? ... natural typing than adding a bunch of underscores). ... CLC FAQ ...
    (comp.lang.c)
  • Re: i need an article on alfred wegeners continental drift discovery
    ... using all Caps or unpunctuated lowercase text or long underscores, ... reading many posts on a NG is not helped by poor writing. ... Terry Farrell - Word MVP ... posters use caps for new sentences. ...
    (microsoft.public.word.newusers)
  • Re: variable names for different fortrans
    ... one of my teachers of a cs class was writing names like that ... on the blackboard... ... Not camel-cased though, with underscores instead, ...
    (comp.lang.fortran)