Opened 6 years ago

Closed 7 weeks 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


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 5 years ago by sjamaan

  • Milestone changed from someday to 4.10.0

Might be nice to get into 4.10.0

comment:2 Changed 4 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 3 years 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 3 years 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

comment:5 Changed 7 weeks ago by sjamaan

  • Resolution set to wontfix
  • Status changed from new to closed

This seems unnecessary

Note: See TracTickets for help on using tickets.