On Mon, Jul 9, 2012 at 6:53 PM, Brady Eidson <[email protected]> wrote:
>
> On Jul 9, 2012, at 2:43 PM, Alexis Menard <[email protected]> wrote:
>
>> Hi,
>>
>> For those who "secretly" use printf debugging :). I know the
>> recommended way is to use a debugger and it's not the point of this
>> discussion.
>
> A lot of us do this, and sometimes it's necessary.  I agree with the gripe 
> and support adding something easier.
>
>> So I propose wtf() and its stream operator.
>>
>> Usage :
>>
>> wtf()<<"Hello"<<"World"<<3<<4.53322323; will output : Hello World 3 4.53322
>
> There is no reason to bring in stream operators - that are willfully absent 
> from WebCore - just for debugging.
>

But it's really nice for that purpose, and somehow match std::cout

> Overloading functions works just as well.

I'm not sure to understand what you mean here...

>
> ~Brady



-- 
Alexis Menard (darktears)
Software Engineer
openBossa @ INdT - Instituto Nokia de Tecnologia
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to