New draft (#4) of SRFI 266: The expr syntax Arthur A. Gleckler (26 Apr 2026 16:12 UTC)
Re: New draft (#4) of SRFI 266: The expr syntax jobol (26 Apr 2026 21:19 UTC)

Re: New draft (#4) of SRFI 266: The expr syntax jobol 26 Apr 2026 21:19 UTC

Le Sun, 26 Apr 2026 09:12:02 -0700,
"Arthur A. Gleckler" <xxxxxx@speechcode.com> a écrit :

> I've just published draft #4 of SRFI 266
> <https://srfi.schemers.org/srfi-266/>. It was submitted by José Bollo,
> author of the SRFI.

Thank you Arthur

> Here are José's comments on the draft:
>
>  I changed examples (for simplest) and added a paragraph of
> discussion.

The second draft already tried to answer to all feedback raised on the
list. That fourth is better and comes with working implementation and
tests.

The current implementation works well for guile. I tried quickly to
adapt it for chicken or chez but failed in the little time I got. I
have almost no practice of syntax-case for these scheme implementations.
So I would be very happy if someone could help to fix it for at least
one more implementation.

Artyom Bologov expected the SRFI to allow extensibility. The current
implementation already shows how it could be achieved. However, because
I'm not sure of how to do, this fourth draft doesn't specify anything
on extensibility, letting it to be discussed. Is the current
implementation of extensibility correct? I can't answer because it
implies syntaxic transformation driven by static rules (and maybe
composition of static rules) and I'm not sure that it is good scheme
practice.

The specification of expr already includes advanced topics that the
first draft had not: natural integration of function calls, conditional
ternary operator, natural sequence of comparisons, embedded binding.
This could make expr potentially helpful if it were correctly specified.

Regards

> Here is the commit summary:
>
>    - Add SPDX metadata again.
>    - Add dark/light/system control to landing page.
>    - Removal of deprecated files
>    - Rename expr.scm as expr-impl.scm
>    - Add code for importing srfi-266 in guile
>    - Simplify examples and add discussion
>    - Publish fourth draft.
>
> Here's the diff:
>
> https://github.com/scheme-requests-for-implementation/srfi-266/compare/draft-3..draft-4
>
> Regards,
>
> SRFI Editor