Opened 5 years ago

Last modified 11 months ago

#988 new enhancement

Add drop-prefix to import specifiers

Reported by: johnwcowan Owned by:
Priority: major Milestone: 5.1
Component: unknown Version: 4.8.x
Keywords: Cc:
Estimated difficulty: medium

Description

I'm proposing to add "drop-prefix" to the list of import specifiers. It has the same syntax as "prefix", but the opposite semantics. Rather than adding the prefix to all imported identifiers, it removes the prefix from any imported identifiers that already have it. This allows you to strip prefixes you don't care about, or change them in two steps by wrapping "prefix" around "drop-prefix".

Chibi Scheme already has this import specifier, and I have written an R7RS-large proposal to provide it.

Change History (4)

comment:1 Changed 3 years ago by sjamaan

  • Milestone changed from someday to 4.10.0

Might be nice to get into 4.10.0

comment:2 Changed 2 years ago by sjamaan

  • Milestone changed from 4.10.0 to 5.0

Who am I kidding? We'd be lucky if we get this done by 5.0.

comment:3 Changed 13 months ago by sjamaan

  • Estimated difficulty set to medium

This needs to deal with inconsistencies caused (for example, when the prefix doesn't exist, or the prefix is the entire identifier, and I'm not sure if it can happen, but what to do when identifiers clash after doing this).

comment:4 Changed 11 months ago by sjamaan

  • Milestone changed from 5.0 to 5.1

Can be done without breaking backwards compat, and we have enough on our plates right now; moving to 5.1

Note: See TracTickets for help on using tickets.