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?)