[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?)
- Re: guile-user Digest, Vol 188, Issue 9, Zelphir Kaltstahl, 2018/07/08
- Re: guile-user Digest, Vol 188, Issue 9, Matt Wette, 2018/07/08
- Re: guile-user Digest, Vol 188, Issue 9, Keith Wright, 2018/07/08
- Re: guile-user Digest, Vol 188, Issue 9, Alex Sassmannshausen, 2018/07/10