[cfe-dev] Callee declarations and explicit casts

Chris Lattner clattner at apple.com
Tue Sep 13 22:20:33 PDT 2011


On Sep 13, 2011, at 5:42 PM, Bill Wendling wrote:

>> 
>> So consider this an opportunity to register your opinion and maybe
>> get this changed back.
>> 
> Why not add a new function (or flag) which allows the programmer to choose whether they look through an explicit cast or not?

The right answer is rarely to add a flag and let a programmer control it.  This is just pushing off responsibility to the end-user.  Even if you do that, you have to argue about what the default is.

-Chris



More information about the cfe-dev mailing list