> > (*) Unfortunately, they often use the POSIX-reserved "_t" namespace,
> > but that's a different issue.
> 
> I used to feel the same way, but other namespaces for types end up being
> ugly. For example, I think vim uses "*_T".

Well. The *_t convention is used 20 times more frequently than the other
conventions:

38303   *_t    [1]
  452   *_T    [2]
  601   *_type [3]
   73   *_ty   [4] - that is only GNU gettext
 1407   other  [5a][5b]

Standards authors like to reserve certain identifiers for themselves.
But in practice, inventing a good convention and then saying "quod licet Iovi,
not licet bovi" doesn't work.

Bruno

[1] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*_t%3B&literal=0
[2] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*_T%3B&literal=0
[3] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*_type%3B&literal=0
[4] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*_ty%3B&literal=0
[5a] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*%5Ba-zA-Z%5D%5Ba-zA-Z%5D%3B&literal=0
[5b] 
https://codesearch.debian.net/search?q=typedef+struct+%5Ba-zA-Z%5D.*_%5Ba-su-zA-SU-Z%5D%3B&literal=0




Reply via email to