Re: SRFI-0 example implementation Arthur A. Gleckler (28 Jan 2024 23:09 UTC)
Re: SRFI-0 example implementation Jakub T. Jankiewicz (29 Jan 2024 15:05 UTC)

Re: SRFI-0 example implementation Jakub T. Jankiewicz 29 Jan 2024 10:22 UTC

Thanks, I think that I made mistake when modifying the macro to add more
symbols. I need to pay closer attention before I write something to the list.

On Sun, 28 Jan 2024 15:08:45 -0800
"Arthur A. Gleckler" <xxxxxx@speechcode.com> wrote:

> I'm moving this discussion to the mailing list for SRFI 0.
>
> On Sun, Jan 28, 2024 at 3:52 AM Jakub T. Jankiewicz - jcubic at onet.pl
> (via srfi-discuss list) <xxxxxx@srfi.schemers.org> wrote:
>
> > I just noticed that the base implementation of SRFI-0 doesn't skip over
> > not matched symbols. It missing this as last pattern/expansion:
> >
> > ((cond-expand (skip body ...) more-clauses ...)
> >  (cond-expand more-clauses ...))
> >
> > Was this intentional?
>
>
> The last clause in the example implementation is this:
>
> ((cond-expand (feature-id body ...) more-clauses ...)
>  (cond-expand more-clauses ...))
>
> That covers the case you're discussing.  It just uses feature-id instead of
> skip to name the unmatched feature.

--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jcubic.pl/me
https://lips.js.org
https://koduj.org