unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: GuileScript 0.2.0 released
Date: Sun, 30 Jan 2022 00:40:21 -0800	[thread overview]
Message-ID: <CA+XASoULNN9nAoss+D_nv3xaqspUyjQO-dLd-jwDePL9CfG=8A@mail.gmail.com> (raw)

Hi,

I'm pleased to announce GuileScript 0.2.0. This version supports macros and
changes a few function names to make them more schemy (similar to
BiwaScheme). Because of how macro expansion works in Guile (it's done while
producing Tree-IL), GuileScript gets macro support for free (I just needed
to avoid printing the macro definitions to JavaScript).

https://github.com/aconchillo/guilescript

So, this:

(define-syntax gs-when
  (syntax-rules ()
    ((gs-when condition exp ...)
     (if condition
         (begin exp ...)))))

(gs-when #t
  (console-log "hey ho")
  (console-log "let's go"))

converts to this:

(function () {
  if (true) {
    console.log("hey ho");
    return console.log("let's go");
  }
})();

Hopefully I have time to add more features soon. Happy hacking!

Aleix


                 reply	other threads:[~2022-01-30  8:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+XASoULNN9nAoss+D_nv3xaqspUyjQO-dLd-jwDePL9CfG=8A@mail.gmail.com' \
    --to=aconchillo@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).