[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Adding SRFI-97 support

From: Freja Nordsiek
Subject: [PATCH] Adding SRFI-97 support
Date: Tue, 28 Mar 2017 02:15:24 +0200

Wrote a patch to add SRFI-97 ( ) support, which allows
SRFIs to be imported as

    (use-modules ((srfi :XX)))
    (import (srfi :XX))

in addition to

    (use-modules ((srfi srfi-XX)))
    (import (srfi srfi-XX))

The SRFI is meant as a way to provide a portable way to import SRFI libraries.

There is one problem, though. If the scheme reader option keywords is
set to 'prefix, SRFI libraries cannot be imported in SRFI-97 style
till it is turned off or to 'postfix. This happens because SRFI-97
isn't implemented as a macro. Instead it is implemented inside the
resolve-module procedure.

Patch includes tests as well as documentation (including the note that
setting the keywords option to 'prefix prevents it from working).

Freja Nordsiek

Attachment: 0001-Added-SRFI-97.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]