Hacker News new | ask | show | jobs
by rascul 1008 days ago
> the Go code has MORE functionality (flag parsing) with LESS code.

Your code does not have more functionality than GNU's yes as written. It's less code you have to write because of the flag parsing code that has already been written, and it's incompatible with GNU's yes because yours requires -m to change the message.

1 comments

> Your code does not have more functionality than GNU's yes as written.

it has flag parsing

Which does not do functionally more than the C version that was shared by inferiorhuman.
yes it does