News for hackers. Stuff that matters.
Re:Decoded: GNU Coreutils by rascul on Saturday September 09, 2023 @03:37PM (#37449463)
C can obviously parse flags. See for example the plethora of C software that does so, such as many things from GNU Coreutils.

There is no requirement to parse flags for the basic functionality of yes. You implemented that yourself. You can remove your own requirement whenever you want. You don't need to parse a flag, at most you need to parse a string from the command line arguments.

I wonder at this point how you define "flag".

Re:Decoded: GNU Coreutils by 38 on Saturday September 09, 2023 @03:39PM (#37449485)
It's a lose for C either way. Either it cant parse flags, or we remove that requirement, and my code goes from 9 lines to 6.