guile-user
[Top][All Lists]
Advanced

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

Re: Guile Config


From: Zelphir Kaltstahl
Subject: Re: Guile Config
Date: Sun, 15 Jul 2018 12:47:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 11.07.2018 15:33, Alex Sassmannshausen wrote:
>> I am still learning about the "Guile ways" of doing basic things
>> (cooking recipe learning style, I guess :D). The two examples I've
>> created with getopt-long and SRFI 37 are in my examples repository
>> (https://gitlab.com/zelphir-kaltstahl-projects/guile-scheme-tutorials-and-examples/tree/dev/command-line-arguments).
>> With the SRFI 37 example I am not sure if the global options hash table
>> is a good idea, as I usually try to keep as little global state as
>> possible.
> Agreed.  You could pass around the resulting configuration object
> instead of storing it in a global var if you prefer.  That tends to be
> what I do.
>

I am not quite sure I understand correctly. Do you mean that I can
create it globally as I do now, but then simply use it as a parameter
for my main or whatever my entry point procedure is called? (That should
be pass by value, right?)


reply via email to

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