[Top][All Lists]

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

Re: Guile code snippet

From: Ricardo Wurmus
Subject: Re: Guile code snippet
Date: Wed, 20 Apr 2022 11:47:36 +0200
User-agent: mu4e 1.6.10; emacs 28.0.50

Hi Olivier,

> Is there an easy way to do code snippet in Guile?  I currently do:
> # { guile snippet.scm }

The manual introduces how to use code snippets:


  # { … }

is just a shorthand for

  # /bin/bash -c { … }

You can use any interpreter after the hash, e.g.

  # /bin/guile … { … }

But you could just as well provide a quoted Scheme expression or an
actual G-expression right there, e.g.

    `(call-with-output-file ,(first outputs)
       (lambda (port)
         (format port "Hello, world!~%"))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]