SRFI command line tool Lassi Kortela (31 Aug 2022 17:29 UTC)
Re: SRFI command line tool Arthur A. Gleckler (31 Aug 2022 18:03 UTC)
Re: SRFI command line tool Lassi Kortela (31 Aug 2022 18:17 UTC)
Re: SRFI command line tool Arthur A. Gleckler (31 Aug 2022 18:27 UTC)
Re: SRFI command line tool Lassi Kortela (02 Sep 2022 21:23 UTC)
Re: SRFI command line tool Arthur A. Gleckler (02 Sep 2022 22:06 UTC)

SRFI command line tool Lassi Kortela 31 Aug 2022 17:29 UTC

Question for the SRFI community in general, and Arthur in particular:
Would you be willing to maintain a `srfi` command line tool / Scheme
library?

There are ad hoc scripts in the srfi-common repo, and in the
srfi-explorations organization and other assorted repos, which people
use to do SRFI-related tasks. I think the community would benefit if
these scripts are:

- gathered into one repo (I suggest srfi-common)

- grouped as subcommands under a `srfi` shell command (similar to how
the `git` command has accumulated lots of useful subcommands)

- maintained by the community, so that they gradually become more useful
and robust, and conform to a predictable, standard interface

I did a quick sketch here:
https://github.com/srfi-explorations/srfi-common/tree/lassik-command

This is the same as the mainline srfi-common repo with the following
additions:

- A "command" directory. It contains subcommands of the `srfi` shell
command.

- srfi.sld is the main program, which simply gathers the subcommands and
ties them together.

Adding a new subcommand is as simple as adding a new source file to the
"commands" directory (or adding a new command to one of the existing files).

If you peek into any of the command source files, you'll notice that
each command has a reggular Scheme procedure as its dual. The point of
the procedures is that you can do equivalent work from a Scheme REPL
when you don't want to use a Unix shell.