a srfi-108 application/extension: another scheme shell Per Bothner 05 Jan 2014 23:26 UTC

An interesting application/extension of SRFI-108 named quasi-literals
is to use it to run system processes (commands), like a shell:

(define filename "foo.scm")
;; Count number of words in specified file:
(define file-words &`{wc --words &[filename]})

While "`" is not a valid 'cname' according to srfi-108,
it seems a useful extension for this use case.

A draft of an article about this feature is here:
http://per.bothner.com/blog/2014/Kawa-shell-programming/
Comments welcome.

This is implemented in the SVN repository of Kawa,
if anyone wants to experiment.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/