Support :use with :only in ns declarations

Description

None

Environment

None

Attachments

3

Activity

Show:

Michał Marczyk September 17, 2011 at 2:34 AM

The new patch (to be applied on top of the previous one) simplifies the approach taken in parse 'ns and brings get-expander logic in line with that used for other cases. Discussion in the dev group thread linked to above.

Michał Marczyk September 17, 2011 at 12:43 AM

This patch brings support for `(:use-macros [lib.ns :only [names]]*)` (with `:only` being mandatory), see the discussion on the dev group:

https://groups.google.com/forum/#!topic/clojure-dev/N0anoflzWzY

Brenton Ashworth September 14, 2011 at 6:09 PM

This patch looks good to me.

I have created a branch named use-only and applied it. I had to make one small change to emit "goog.require" for the used namespaces.

I also tested using it with some existing applications and everything seems to work fine.

Completed

Details

Assignee

Reporter

Patch

Code

Priority

Created August 30, 2011 at 1:24 AM
Updated July 27, 2013 at 10:01 PM
Resolved July 27, 2013 at 10:01 PM