Re: [Evolution-hackers] Redundant type casts in the evolution* code



On Mon, 2013-01-14 at 07:45 -0500, Matthew Barnes wrote:
> On Mon, 2013-01-14 at 10:24 +0100, Milan Crha wrote:
> > I noticed some time ago that the code is "full" of redundant type casts,
> > but I do not understand what it is good for.
> 
> For better readability, in cases where the type definition also hints at
> what the callback does.

Still doesn't make sense. They use to call it RTFM. In other words, for
me, know the API you use. If you do not know it, then this kind of stuff
is no help. And for me, it's nothing but irritating, not helping in
readability of the code. Simply you cannot copy DOC of the 3rd party
library function into the code where it's used, it was never meant to be
done that way.
	Milan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]