Authentication-Results: mail-b.sr.ht; dkim=pass header.d=smlavine.com header.i=@smlavine.com Received: from mail.smlavine.com (smlavine.com [140.82.41.52]) by mail-b.sr.ht (Postfix) with ESMTPS id 316F311EEFC for <~sircmpwn/hare-users@lists.sr.ht>; Wed, 23 Nov 2022 16:36:09 +0000 (UTC) Received: from localhost (unknown [IPv6:2620:8d:8000:108f:6de1:59c7:1f7a:46b5]) by mail.smlavine.com (Postfix) with ESMTPSA id C899C87548; Wed, 23 Nov 2022 16:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=smlavine.com; s=mail; t=1669221368; bh=9vP+ot7gv/IxLB/n2rXnezyjF2U6u4G1YzFx1PwivgI=; h=Date:Subject:From:To:References:In-Reply-To:From; b=RpaCZNNPsNBVgLUfKR19QFkgM70gTbRW+zfikk8a836r7m5eCx7tNCQvP+VT4xglH qbcOIcHg4eBwiOu8pTKNEGozFefCnK0K3sEllmIHisQpnTxH2kHOmuwfJCKM9hJxRo Uf5thGoOzdzAEYlsAvpeC5RJLCFCI+iwVUXLBjcMafUqbZYetWSYHfTbxAitUZis5I gGvwt7ugyWDgoJCtWjR9Bs0qyITl1T3SLQhqK5+9VqoRgWNH/TZ52pFEe45z9GdhVm 0bsQmkSdYFyB6FZiq/nVJbeoCa5MS+n1OiNP2jHgW/4zzCMsIe0Wm2wcjOeFNLSzBC rAxVCCWW9GT1Q== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 23 Nov 2022 11:36:08 -0500 Message-Id: Subject: Re: getopts long options From: "Sebastian LaVine" To: "Drew DeVault" , "Ember Sawady" , "Tom Regner" , <~sircmpwn/hare-users@lists.sr.ht> X-Mailer: aerc 0.13.0 References: <87k03m12ij.fsf@tomsdiner.org> In-Reply-To: On Wed Nov 23, 2022 at 5:02 AM EST, Drew DeVault wrote: > The getopt module is compatible with POSIX. Why is POSIX compatibility relevent in this case, and what does compatibility mean exactly in this context? It is good for C programs to write to POSIX standards to ensure interoperability between platforms. But Hare programs only need to worry about writing to the standard library, which (presumably) is going to be the same on every platform it is present. The way that the getopt module is used is already very different from how getopt(3p) is used. There may be an argument for keeping the getopt module minimal, but I don't think that "POSIX compatibility" is one of them.