* GuileScript 0.2.0 released
@ 2022-01-30 8:40 Aleix Conchillo Flaqué
0 siblings, 0 replies; only message in thread
From: Aleix Conchillo Flaqué @ 2022-01-30 8:40 UTC (permalink / raw)
To: guile-user
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-30 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-30 8:40 GuileScript 0.2.0 released Aleix Conchillo Flaqué
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).