Opened 7 years ago

Closed 4 months ago

#1383 closed enhancement (wontfix)

Add unexport form for modules

Reported by: evhan Owned by:
Priority: minor Milestone: 6.0.0
Component: compiler Version: 5.0.0
Keywords: modules Cc:
Estimated difficulty: medium

Description

An "unexport" form for modules would be useful. For example, this would only export the identifier "b":

(module m1 *
  (import chicken scheme)
  (define a 1)
  (define b 2)
  (unexport a))

This idea came out of #1376 and associated discussions on the mailing list. This would be a counterpart to "export", used to adjust the export list of a module from within its body.

megane has posted a patch on chicken-hackers, but it will need to be updated to apply to chicken-5.

Change History (2)

comment:1 Changed 4 months ago by felix winkelmann

Milestone: someday6.0.0

comment:2 Changed 4 months ago by felix winkelmann

Resolution: wontfix
Status: newclosed

I think I agree with sjamaan's comments regarding the proliferation of all sorts of export/unexporting tricks. I think we should stick to what exists or keep to writing standard R7RS library definitions.

Note: See TracTickets for help on using tickets.