04.07.2022 01:54:16 Valery Ushakov <u...@stderr.spb.ru>:
> On Mon, Jul 04, 2022 at 00:07:23 +0200, Roland Illig wrote:
>
>> Am 03.07.2022 um 21:55 schrieb Valery Ushakov:
>>> On Sun, Jul 03, 2022 at 10:56:22 +0000, Roland Illig wrote:
>>>
>>>> Module Name:    src
>>>> Committed By:   rillig
>>>> Date:       Sun Jul  3 10:56:22 UTC 2022
>>>>
>>>> Modified Files:
>>>>     src/external/historical/nawk/bin: awk.1
>>>>
>>>> Log Message:
>>>> awk.1: remove trailing space in output of 'echo' example program
>>>
>>> This is cure worse than the desease.  Please revert.
>>
>> Why is it worse?
>
> It's ugly

Why is it ugly?

> and complicated (for an example),

Why is it complicated? It's still only 3 lines of code.

> it obscures the point this example tries to make.

What is this (single?) point this example tries to make? To me, it was how to 
write a BEGIN program that uses ARGV, and my rewritten code still illustrates 
this.

> The point is not to write a perfect echo(1) clone in awk.

If that had been my goal, I would have implemented the -n option as well, at 
which point the code would have grown large enough to be extracted into a 
separate file. I didn't do that though.

Roland

Reply via email to