Opened 12 years ago

Closed 6 years ago

#988 closed enhancement (wontfix)

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 (5)

comment:1 Changed 10 years ago by sjamaan

Milestone: someday4.10.0

Might be nice to get into 4.10.0

comment:2 Changed 9 years ago by sjamaan

Milestone: 4.10.05.0

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

comment:3 Changed 8 years ago by sjamaan

Estimated difficulty: 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 8 years ago by sjamaan

Milestone: 5.05.1

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

comment:5 Changed 6 years ago by sjamaan

Resolution: wontfix
Status: newclosed

This seems unnecessary

Note: See TracTickets for help on using tickets.