Re: About adding new egg "varg"
li lu via Chicken-users <[email protected]> Sat, 6 Dec 2025 05:27:26 +0000
| Newsgroups | gmane.lisp.scheme.chicken |
|---|---|
| Message-ID | <DS5PR14MB9580862B087FCE5CD228DD26E6ECA4A@DS5PR14MB958086.namprd14.prod.outlook.com> |
Thanks for advice, there are some explanation about the confusion:
* About the platform
*
Actually the required egg varg was extracted from another project https://github.com/riku-ri/libyaml.ss. And libyaml.ss build the C/C++ source by chicken-install using gcc/clang options. I’m not sure if win32/MinGW also work.
Anyway you’re right, varg.ss actually did not require the platform specified functions. So I remove it in the new commit(did not release yet)
* About the usage
*
I added another example including how to get values and print them
The new example is a little bit log so did not show it here
* https://github.com/riku-ri/varg.ss/blob/main/docs/usage.md#examples
* https://riku-ri.github.io/varg.ss/docs/usage.html#examples
* About the condition syntax
* Personally I preffered cond than other condition syntax, because it can add multiple steps in a branch, without wrapping additional let or begin
Hope that these can clarify your confusion.
________________________________
From: siiky <[email protected]>
Sent: Friday, December 5, 2025 9:18 PM
To: li lu <[email protected]>; [email protected] <[email protected]>
Subject: Re: About adding new egg "varg"
Hey,
Skimming the egg file, `(platform (or linux unix))` appears unnecessarily restrictive. Is there anything really OS-specific (I notice you don't import e.g. `(chicken platform)`)?
From the example in docs/example.md, how would one get the value associated with the mode keyword? Sorry if that's a dumb question, I couldn't really understand how to use the the library from a quick read.
And a small suggestion of style, which you're free to ignore, of course :): In the particular case that there's a single condition in a `cond` expression, I find it more readable to use `when` or `unless`, as appropriate. For example, `(unless pred? body ...)` in place of `(cond ((not pred?) body ...))`
siiky