Comment by kermatt

3 days ago

Can you expand on using Guile for shell scripting?

I was aware of it, but not familiar until I looked at the link you shared. Looks like a Scheme, which for the uninitiated is a different approach for shell scripts.

Yes, there are some basic examples here [0] – otherwise it's just shebang and you're good to go; it can be a rabbit hole where you start liking it too much than what you really should (you wanted simple scripts, now you are finishing scheme book).

It's consistent, "infinitely" terse (you can create dsl-like apis for your problem domains), proper programming language.

First time I used it for scripting was when I had to process some xmls and do bunch of processing and gluing together – I was impressed how quick and easy it was without knowing anything about it and how readable the whole thing ended up being.

[0] https://www.gnu.org/software/guile/manual/html_node/Scriptin...