unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: Release of Scheme+ for Guile version 9.1
Date: Fri, 28 Jun 2024 15:44:37 +0200	[thread overview]
Message-ID: <CADEOadf6aZAsHS5h6psLqvUQikS1G-8fCx2CoaF2N1C1T2kYdA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]

Hello,

i released Scheme+ for Guile version 9.1:

https://github.com/damien-mattei/Scheme-PLUS-for-Guile

It is a big refactoring of code,now completely implemented with modules and
still use syntax transformers.

It add very few new features but it is a complete refactoring of the code
presentation using modules. (instead of mixed included/imported files of
the previous releases)

I use the Guile modules instead of R*RS (that have little problem in
current version of Guile)

Scheme+ add a lot of "syntactic sugar" to Scheme : infix with precedence
operator, [ ] square bracket notation for indexed objects (vector, arrays,
strings,...), and much more i can not describe in a short message.

Here is a limited (not all) overview of the modules dependencies focusing
on the infix and square bracket SRFI 105 interaction:

[image: schema-scheme+.jpg]

So now we can use all features of Scheme+ or only load what we want module
by module.

Examples:

to use operator precedence in infix:

scheme@(guile-user)> (use-modules (nfx))
scheme@(guile-user)> {3 * 5 + 2}
$1 = 17

to use square bracket with vectors,strings,hash tables, arrays,etc ... :

scheme@(guile-user)> (use-modules (bracket-apply))
scheme@(guile-user)> {#(1 2 3 4 5)[2]}
$2 = 3

scheme@(guile-user)> (use-modules (slice))
scheme@(guile-user)> {"hello"[0 : 5 : 2]}
$4 = "hlo"

scheme@(guile-user)> {"hello"[: : -1]}
$5 = "olleh"

(this slicing syntax is same as Python syntax adapted to Scheme, with a few
differences inherent to Scheme/Python objects differences)

I will  describe slowly and more precisely in other messages each one of
the features of Scheme+ in the next weeks.

Regards,

Damien

[-- Attachment #2: schema-scheme+.jpg --]
[-- Type: image/jpeg, Size: 74426 bytes --]

                 reply	other threads:[~2024-06-28 13:44 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=CADEOadf6aZAsHS5h6psLqvUQikS1G-8fCx2CoaF2N1C1T2kYdA@mail.gmail.com \
    --to=damien.mattei@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).