unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Release of Scheme+ for Guile version 9.1
@ 2024-06-28 13:44 Damien Mattei
  0 siblings, 0 replies; only message in thread
From: Damien Mattei @ 2024-06-28 13:44 UTC (permalink / raw)
  To: guile-user

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-28 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 13:44 Release of Scheme+ for Guile version 9.1 Damien Mattei

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).