Re: [dev] Better naming for arg.h API

From: Nikita Zlobin <nick87720z_AT_gmail.com>
Date: Tue, 6 Jul 2021 17:19:58 +0500

In Mon, 5 Jul 2021 13:36:50 +0200
Hiltjo Posthuma <hiltjo_AT_codemadness.org> wrote:

> It is based on:
> https://9fans.github.io/plan9port/man/man3/arg.html
>
> argc (count) and argv (array of strings) are the program argument
> names.
>

Yup, and in this context - following name looks strange:
> The function macro ARGC returns the current option character, as an
> integer.
(some name meaning collision takes place there).

Comparing to this, getopt-style interfaces look more mature by design
(let alone long options and even suboptions).
Received on Tue Jul 06 2021 - 14:19:58 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 06 2021 - 14:24:08 CEST