Re: Naming typedefs
- From: Francine.Neary@xxxxxxxxxxxxxx
- Date: Sun, 02 Sep 2007 17:52:44 -0000
On Sep 2, 6:24 pm, Måns Rullgård <m...@xxxxxxxxx> wrote:
Francine.Ne...@xxxxxxxxxxxxxx writes:
On Sep 2, 1:40 pm, Måns Rullgård <m...@xxxxxxxxx> wrote:
Declaring typedefs for structs in general does not help in solving any
such fundamental problems. Doing so only adds complexity with no
functional gain.
I'm never going to stop typedef'ing structs for the same reason I'm
All I've been trying to say is that there are no technical reasons to
routinely typedef structs; it is purely a matter of taste. I also
gave reasons why I prefer not to use unnecessary typedefs. The OP was
asking for advice on naming conventions, and I responded with what I
consider good practice that works well for me. You apparently
disagree, and you are free to do so, but this last post of yours
didn't add anything relevant to the discussion.
On the contrary, it refuted your point that there is no gain in
exchange for the "extra complexity" that you assert exists:
specifically, you gain by saving typing seven characters every time
you declare a variable, function or parameter whose type is a struct.
If you nothing more
to add, please just refrain from posting. You might as well be
arguing whether red or blue is the prettier colour. We all have our
own personal favourite colours, but sometimes one colour is better
suited than another for purely technical reasons, such as contrast (or
camouflage).
Well, I was the OP, and I seem to have provoked a religious war rather
than a civil discussion about type-naming conventions, so at this
point I abandon ship.
never going to write code like
for(array_index_counter=0 ; array_index_counter<MAX_INDEX_OF_ARRAY ;
array_index_counter++) {
/* stuff */
}
Are you referring to the hideous formatting, the overly long variable
names, or to for loops in general?
--
Måns Rullgård
m...@xxxxxxxxx
.
- Follow-Ups:
- Re: Naming typedefs
- From: Måns Rullgård
- Re: Naming typedefs
- References:
- Naming typedefs
- From: Francine . Neary
- Re: Naming typedefs
- From: Eric Sosman
- Re: Naming typedefs
- From: Francine . Neary
- Re: Naming typedefs
- From: Måns Rullgård
- Re: Naming typedefs
- From: Francine . Neary
- Re: Naming typedefs
- From: Måns Rullgård
- Re: Naming typedefs
- From: Francine . Neary
- Re: Naming typedefs
- From: Måns Rullgård
- Naming typedefs
- Prev by Date: Re: Portable time profiling function
- Next by Date: Re: Naming typedefs
- Previous by thread: Re: Naming typedefs
- Next by thread: Re: Naming typedefs
- Index(es):
Relevant Pages
|