Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #4033

Re: macro conventions

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: macro conventions
Date 2011-05-16 07:40 +1200
Message-ID <93aoh7FlpiU1@mid.individual.net> (permalink)
References <4dcd62ab$0$23874$bbae4d71@news.suddenlink.net> <gjpqs69uh0h50ssjml2upma865bo90epav@4ax.com> <lnboz4gji9.fsf@nuthaus.mib.org> <890d6d8f-2f87-44b3-8a8a-07779f67a486@w36g2000vbi.googlegroups.com>

Show all headers | View raw


On 05/16/11 03:29 AM, Malcolm McLean wrote:
> On May 15, 4:50 pm, Keith Thompson<ks...@mib.org>  wrote:
>> ralph<nt_consultin...@yahoo.net>  writes:
>>
>> TO be clear, it's leading underscores that should be avoided.  FOO_BAR,
>> for example, is perfectly ok.  Trailing underscores are also ok, though
>> I wouldn't use them without a good reason.
>>
> One problem with underscores is that they are not pronounced. So it
> can be hard to remember whether it's FOO_BAR or FOOBAR.

They are pounced as a space or pause, FOO_BAR is pronounced as FOO BAR, 
not FOOBAR.

> Also,
> experience with websites has shown that people prefer words
> runtogetherratherthan separated_out_by_underscores, if spaces aren't
> an option.

Citation?  I could understand runTogetherRatherThan.

-- 
Ian Collins

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

macro conventions "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-13 12:56 -0400
  Re: macro conventions pete <pfiland@mindspring.com> - 2011-05-13 13:08 -0400
  Re: macro conventions Shao Miller <sha0.miller@gmail.com> - 2011-05-13 13:14 -0400
    Re: macro conventions Keith Thompson <kst-u@mib.org> - 2011-05-13 11:41 -0700
      Re: macro conventions "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-14 23:08 -0400
  Re: macro conventions ralph <nt_consulting64@yahoo.net> - 2011-05-13 13:15 -0500
    Re: macro conventions "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-14 23:11 -0400
    Re: macro conventions "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-15 04:00 -0400
      Re: macro conventions Angel <angel+news@spamcop.net> - 2011-05-15 11:15 +0000
        Re: macro conventions Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-05-16 04:36 +0300
          Re: macro conventions Ike Naar <ike@sverige.freeshell.org> - 2011-05-16 09:56 +0000
            Re: macro conventions Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-05-16 19:00 +0300
            Re: macro conventions Seebs <usenet-nospam@seebs.net> - 2011-05-16 19:10 +0000
              Re: macro conventions Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-05-22 21:27 +0300
    Re: macro conventions Keith Thompson <kst-u@mib.org> - 2011-05-15 06:50 -0700
      Re: macro conventions Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-05-15 08:29 -0700
        Re: macro conventions Ian Collins <ian-news@hotmail.com> - 2011-05-16 07:40 +1200
          Re: macro conventions "osmium" <r124c4u102@comcast.net> - 2011-05-15 14:52 -0500
      Re: macro conventions ralph <nt_consulting64@yahoo.net> - 2011-05-16 02:22 -0500
        Re: macro conventions Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-16 14:18 +0100
          Re: macro conventions David Resnick <lndresnick@gmail.com> - 2011-05-16 08:03 -0700
            Re: macro conventions Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-16 17:32 +0100
        Re: macro conventions Keith Thompson <kst-u@mib.org> - 2011-05-16 08:43 -0700
          Re: macro conventions Michael Press <rubrum@pacbell.net> - 2011-05-16 14:47 -0700

csiph-web