Re: Notes on trying to get srfi-tools working. Daphne Preston-Kendal 20 Apr 2023 09:47 UTC

On 20 Apr 2023, at 11:34, Lassi Kortela <xxxxxx@lassi.io> wrote:

> IIRC, SRFI 227 can be implemented using syntax-rules so it's portable in principle. But the implementation is a substantial amount of code and we only make trivial use of it. IMHO it would be best if we could get by with a subset of the SRFI only.

The syntax-rules implementation can actually be shorted significantly by making the two versions share the same parsing code. I don’t know why I didn’t do that all along. (The implementation predates the SRFI, which just happened to choose the same syntax I had already implemented: I think maybe I thought the syntax for opt-lambda and opt*-lambda needed to be different, but in fact they differ only in semantics.)

If a shorter/lighter-weight implementation would be helpful, I can do this.

Daphne