In data Sunday 2011-06-05 19:07:55 +0200, Anton Khirnov ha scritto:
> 
> On Sun, 5 Jun 2011 13:15:14 +0200, Stefano Sabatini 
> <[email protected]> wrote:
> > On date Sunday 2011-06-05 09:07:58 +0200, Anton Khirnov encoded:
> > 
> > > +typedef attribute_deprecated AVDictEntry  AVMetadataTag;
> > 
> > Nit: I prefer:
> > 
> > AVDictionary -> AVDictionaryEntry
> > rather than
> > AVDictionary -> AVDictEntry
> > 
> > avoiding contractions in this case allows to show better the
> > relationship between the two structs, as it is done with:
> > AVMetadata -> AVMetadataTag
> 
> I disagree, IMO it's obvious how AVDictEntry relates to AVDictionary,
> so you'd only annoy the devs by making them type more.

If typing is a problem you can define an alias:
typedef AVDictEntry AVDictionaryEntry

and today auto-completion features should easily address that
issue. On the other hand if I'll try to autocomplete AVDictionary I
won't find anything with AVDictEntry, but I'll find AVDictionaryEntry
the other way.

Also my guess is that human minds tend to recognize more easily
relations between terms if they share a similiar lexycal structure by
recognizing the common pattern, the cognitive "price" of the two
choices, even if minimal, should be considered.
-- 
Don't kid yourself.  Little is relevant, and nothing lasts forever.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to