guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long command line arguments using SRFI 37


From: Zelphir Kaltstahl
Subject: Re: Long command line arguments using SRFI 37
Date: Sun, 6 Jan 2019 23:57:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 1/6/19 1:07 PM, tantalum wrote:
> i dont know if it is possible, but the source code of srfi-37 is
> available, on my machine it is at
> /usr/share/guile/2.2/srfi/srfi-37.scm. i didnt see an option for the
> "--name value" case at first glance.
>
> apparently the --name=value syntax is to allow for long options with
> optional values. otherwise "--name value" and "value --name" might be
> ambiguous.
> https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
>
> from the linked code:
>     ;; seed - What is the seed???
>
> seed is the initial value for what is "loads" in the code. it is the
> initial value for what eventually becomes the result of the call to
> args-fold. like the init parameter of fold.

I was wondering about that. So it's just that a fold needs an initial
value to work with. The names seed and loads are a bit difficult to make
sense of immediately, but I understand now.

Thanks!

Zelphir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]