Opened 7 years ago

Closed 5 years ago

#144 closed defect (wontfix)

strip prefix on import

Reported by: cowan Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Core Keywords:


I'm thinking that for importing code that defines its external symbols as foo:this, foo:that, and foo:tother, there should be a type of import clause that strips a specified prefix from imported symbols. This is equivalent to renaming on import or renaming on export, but less painful, in the same way as the prefix import clause does.

Specific proposal: (strip-prefix <import-set> <prefix-identifier>).

Change History (5)

comment:1 Changed 7 years ago by arcfide

I agree that this is useful, though I wonder if we should consider it necessary for WG1? I would go for drop-prefix instead of strip, since I think is sounds less aggressive, but other than that either WG2, at least, or WG1, maybe, should have this.

comment:2 Changed 7 years ago by cowan

Technically, nothing is necessary except rename and either only or exclude. I'm fine with drop instead of strip.

comment:3 Changed 6 years ago by alexshinn

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

We voted no.

comment:4 Changed 5 years ago by cowan

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 5 years ago by cowan

  • Resolution set to wontfix
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.