Re: Paranoid about style/elegance and function size, please quell
John Potter wrote:
[color=blue]
> Sean Fraley wrote:
>[color=green]
>> std::cout << "this program has run for " << std::clock()
>> << " clock ticks.\n";[/color]
>[color=green]
>>is actually a better choice than[/color]
>
>[color=green]
>> std::cout << "this program has run for "
>> << foo(std::cout)
>> << "clock ticks.\n";[/color]
>[color=green]
>>for the following reasons:[/color]
>[color=green]
>>1) it works like you think it should. Try writing, compiling,
>>and then running some code with your implementation of foo.
>>It does some weird stuff.[/color]
>
> Be nice. Do not misuse it. Use it properly and complain about that.
>
> foo(std::cout << "this program has run for ")
> << "clock ticks." << std::endl;[/color]
I hope everyone remembers that Sean is complaining about
Francis Glassborow's function and not mine.
I felt that I was obliged to do the best I could
with the function that Francis gave us.
John Potter wrote:
[color=blue]
> Sean Fraley wrote:
>[color=green]
>> std::cout << "this program has run for " << std::clock()
>> << " clock ticks.\n";[/color]
>[color=green]
>>is actually a better choice than[/color]
>
>[color=green]
>> std::cout << "this program has run for "
>> << foo(std::cout)
>> << "clock ticks.\n";[/color]
>[color=green]
>>for the following reasons:[/color]
>[color=green]
>>1) it works like you think it should. Try writing, compiling,
>>and then running some code with your implementation of foo.
>>It does some weird stuff.[/color]
>
> Be nice. Do not misuse it. Use it properly and complain about that.
>
> foo(std::cout << "this program has run for ")
> << "clock ticks." << std::endl;[/color]
I hope everyone remembers that Sean is complaining about
Francis Glassborow's function and not mine.
I felt that I was obliged to do the best I could
with the function that Francis gave us.
Comment