From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: zimoun Newsgroups: gmane.lisp.guile.user Subject: SRFI-37 and short-name option with optional argument Date: Tue, 12 May 2020 22:14:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128354"; mail-complaints-to="usenet@ciao.gmane.io" To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue May 12 22:14:49 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYbIf-000XFz-4v for guile-user@m.gmane-mx.org; Tue, 12 May 2020 22:14:49 +0200 Original-Received: from localhost ([::1]:46556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYbIe-0001JM-7O for guile-user@m.gmane-mx.org; Tue, 12 May 2020 16:14:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYbIR-0001Iy-5j for guile-user@gnu.org; Tue, 12 May 2020 16:14:35 -0400 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:45240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYbIQ-0003Bb-JY for guile-user@gnu.org; Tue, 12 May 2020 16:14:34 -0400 Original-Received: by mail-qt1-x832.google.com with SMTP id j2so11986057qtr.12 for ; Tue, 12 May 2020 13:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ELdpDaYAHXHMD85Q7YnJ+5ctlgTa8Eq9QA6cYxYe6Tg=; b=uBenCjU7syWZyeQ3qdjBDBpsuwuQmMTyfnblvB2mAo8BzhX740ejhhmRPkZrzy/WDl RKenoD+DWKTiXHmgH417zwVddElCDsUvpLkIdDaM5M1Xlq5P3qm2I0wzwoLMIt7wdX3B O+eI1fh3UHEVKlLpDjs5LCMgEt/GMAO78eROrpVqv6WxT5BWMtoUd/dqVeuKMiTe8XfU rkLyZ1Kz2v8Y60GomO0cqzBLxCbaKF9n3KprDZZsQipsV7wdWHxmIr+B/A3Pf6qG355q nS28oNekjS3RRjU97f2UQ1rZRLLhJmBP5fOhpCcyD9oQLKbE2WKBY8NTzGMB4C1OSwhh V/xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ELdpDaYAHXHMD85Q7YnJ+5ctlgTa8Eq9QA6cYxYe6Tg=; b=SzY7SnQdIbHg7s769bqqBiu0jxZ/Qy6TWGgNOSv/ubOZGdxPsu6E56S64gylIYfm6T kEj0ZN7HI69y/nVJo/IdkyI0Cg9k7QHpmJ39RMOPrf/78EWMf4rWWNR9Jq6MpEamFHbX ZTL8A2JgSn3eba1Qb3Ybrq7fCwfx9sFcMiGYlXI4MeKBiPBc4urlTkIxhCrBptT6fmTn YKBFePS1xEojpO6Qh9pasJIi4Kp53A6N/iGEZ8QESB3nTpKW3VzLGqdw3tOiabOi7gF2 2l5C0+WJnhVzBpzoWCEPSYm0jWMcmZyrFRmLc0D7cHl6IXp+h1rQQZylbfY4t4PUdww5 VmMQ== X-Gm-Message-State: AOAM530/VPOgyhHBK44dJNba0pLifrLQFMF9JXh/MqSAq9AT/xhe8SU1 L5mI6vV73UQIY4B+TYH0m9RTpmDz1GVPkT5xPNoELjzZ X-Google-Smtp-Source: ABdhPJzka5cZGTwaAgN9DMFalnCLsLZZWGb4mG9x8NChYDzfZN416owMSZYMt9XVlX5a7ArmuQ2+Xf8KgQHyKFW38fQ= X-Received: by 2002:aed:2d44:: with SMTP id h62mr2551435qtd.217.1589314473283; Tue, 12 May 2020 13:14:33 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x832.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DEAR_NOBODY=2.442, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16446 Archived-At: Dear, The semantic of short-name option with optional argument is not clear as the comment says: http://git.savannah.gnu.org/cgit/guile.git/tree/module/srfi/srfi-37.scm#n58 Let consider that the option '-a, --long-a' has an optional argument and '-b, --long-b' another option. Currently, from my tests using SRFI-37: -a X -b # OK (1) -aX -b # OK (2) --long-a -b # OK -a -b # KO (3) The semantic of (3) is ambiguous, obviously. :-) So, it seems that the argument is not optional for the short-name case. One way to resolve such case is to remove the form (1) when the short-name '-a' accepts an optional argument. Does it make sense? Thank you in advance for your wise advice. Best regards, simon