[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a srfi-108 application/extension: another scheme shell

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:
Comments welcome.

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