Extend ns form to support :rename option

Description

Support a :rename option to :require. Following :rename should be a map of symbol to symbol. Refer to clojure.core/refer for semantics with respect to this allowing avoidance of clashes.

An REPL example:

Environment

None

Attachments

2

Activity

Show:

António Monteiro August 9, 2016 at 7:18 PM

Attached CLJS-1508-1.patch which takes feedback into account

David Nolen August 8, 2016 at 1:51 PM

Flowing a new kind of value (maps) through this code seems like a big complication in an area where the code is already not particularly straightforward. I would also be a little concerned about downstream complexity (other people also have to make this check if using the analyzer for some reason).

António Monteiro August 1, 2016 at 1:24 PM

Added patch with fix and tests.

I'd appreciate some initial feedback on this one.

Completed

Details

Assignee

Reporter

Patch

Code and Test

Affects versions

Priority

Created December 10, 2015 at 5:02 AM
Updated August 9, 2016 at 10:26 PM
Resolved August 9, 2016 at 10:26 PM