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


Groups > comp.lang.c > #153578

Re: typedef ... refactored

From Anton Shepelev <anton.txt@gmail.com>
Newsgroups comp.lang.c
Subject Re: typedef ... refactored
Date 2020-08-13 00:52 +0300
Organization A noiseless patient Spider
Message-ID <20200813005227.b02c40b51ddf5ad71c7ca82b@gmail.com> (permalink)
References <7a5f16a3-d30d-46ec-9926-b0736428902do@googlegroups.com> <rgoo37$3ca$1@dont-email.me> <slrnrj3c08.u86.please@logancomp.rathbonelaw.com> <rgtcot$7i6$1@dont-email.me>

Show all headers | View raw


Bonita Montero to Poprocks:

> > Sometimes I put an underscore in front of the struct
> > identifier to distinguish it in my mind from the typedef
> > I end up declaring.
>
> That doesn't make sense.

It makes perfect sense for people who do not want duplicate
identifiers, even though the language allows them, because
it is incompatible with their thinking. C#, for example, has
gone so far as to allow variable identifiers to collide not
only with type identifiers, but also with keywords, but I
never ever do it. It is for the same reason that I am chary
of using method overloads. If a method has different
parameters it is a different method worthy of a different
name. Thankfully, C has no funciton overloading.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

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


Thread

typedef ... refactored G G <gdotone@gmail.com> - 2020-08-09 01:07 -0700
  Re: typedef ... refactored G G <gdotone@gmail.com> - 2020-08-09 01:46 -0700
    Re: typedef ... refactored Richard Damon <Richard@Damon-Family.org> - 2020-08-09 08:09 -0400
      Re: typedef ... refactored Manfred <noname@add.invalid> - 2020-08-09 18:08 +0200
  Re: typedef ... refactored Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-08-09 09:29 +0000
  Re: typedef ... refactored Johann Klammer <klammerj@NOSPAM.a1.net> - 2020-08-09 13:29 +0200
  Re: typedef ... refactored Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-09 13:53 +0200
    Re: typedef ... refactored Poprocks <please@replytogroup.com> - 2020-08-10 20:37 +0000
      Re: typedef ... refactored Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-08-10 13:49 -0700
        Re: typedef ... refactored Poprocks <please@replytogroup.com> - 2020-08-10 23:09 +0000
          Re: typedef ... refactored Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-08-11 07:14 +0000
            Why not indeed??? (Was: typedef ... refactored) gazelle@shell.xmission.com (Kenny McCormack) - 2020-08-11 07:48 +0000
            Re: typedef ... refactored Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-08-11 10:56 +0100
      Re: typedef ... refactored Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-11 08:10 +0200
        Re: typedef ... refactored Anton Shepelev <anton.txt@gmail.com> - 2020-08-13 00:52 +0300
          Re: typedef ... refactored Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-14 14:13 +0200
            Re: typedef ... refactored Bart <bc@freeuk.com> - 2020-08-14 13:37 +0100
              Re: typedef ... refactored Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-14 14:54 +0200
                Re: typedef ... refactored David Brown <david.brown@hesbynett.no> - 2020-08-14 16:46 +0200
                Re: typedef ... refactored Bart <bc@freeuk.com> - 2020-08-14 16:59 +0100
                Re: typedef ... refactored David Brown <david.brown@hesbynett.no> - 2020-08-14 21:05 +0200
                Re: typedef ... refactored Bart <bc@freeuk.com> - 2020-08-14 20:51 +0100
                Re: typedef ... refactored antispam@math.uni.wroc.pl - 2020-08-16 13:36 +0000
                Re: typedef ... refactored Bart <bc@freeuk.com> - 2020-08-16 15:58 +0100
                Re: typedef ... refactored antispam@math.uni.wroc.pl - 2020-08-16 18:10 +0000
                Re: typedef ... refactored Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-08-14 13:23 -0700
                Re: typedef ... refactored David Brown <david.brown@hesbynett.no> - 2020-08-16 19:48 +0200
                [OT] words.  Was: typedef ... refactored Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-08-16 20:08 +0100
                Re: [OT] words. Was: typedef ... refactored David Brown <david.brown@hesbynett.no> - 2020-08-17 10:50 +0200
                Re: [OT] words. Was: typedef ... refactored Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-08-17 12:00 +0100
                Re: typedef ... refactored Anton Shepelev <anton.txt@g{oogle}mail.com> - 2020-08-17 17:51 +0300
                Re: typedef ... refactored Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-08-17 16:06 +0100
                Re: typedef ... refactored Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-08-17 10:48 -0700
                Re: typedef ... refactored scott@slp53.sl.home (Scott Lurndal) - 2020-08-17 19:36 +0000
                Re: typedef ... refactored Siri Cruise <chine.bleu@yahoo.com> - 2020-08-17 14:06 -0700
                Re: typedef ... refactored Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-14 18:37 +0200
                Re: typedef ... refactored Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-08-14 10:29 -0700
                Re: typedef ... refactored David Brown <david.brown@hesbynett.no> - 2020-08-14 21:10 +0200
                Re: typedef ... refactored Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-08-14 12:32 -0700
  Re: typedef ... refactored G G <gdotone@gmail.com> - 2020-08-09 05:44 -0700
    Re: typedef ... refactored Barry Schwarz <schwarzb@delq.com> - 2020-08-09 08:12 -0700
      Re: typedef ... refactored G G <gdotone@gmail.com> - 2020-08-09 08:32 -0700
  Re: typedef ... refactored John Bode <jfbode1029@gmail.com> - 2020-08-12 11:45 -0700
    Re: typedef ... refactored Bart <bc@freeuk.com> - 2020-08-12 19:59 +0100
    Re: typedef ... refactored Siri Cruise <chine.bleu@yahoo.com> - 2020-08-12 14:16 -0700
  Re: typedef ... refactored Anton Shepelev <anton.txt@gmail.com> - 2020-08-13 00:41 +0300

csiph-web