[CLJ-879] Allow :require to support a :refer clause Created: 17/Nov/11 Updated: 17/Feb/12 Resolved: 17/Feb/12 |
|
| Status: | Closed |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Enhancement | Priority: | Minor |
| Reporter: | Phil Hagelberg | Assignee: | Phil Hagelberg |
| Resolution: | Completed | Votes: | 9 |
| Labels: | patch,, test | ||
| Attachments: |
|
| Patch: | Code and Test |
| Approval: | Ok |
| Description |
|
There's been discussion previously about the complexity of the ns We can't change the fact that :use refers everything by default Clojure-dev thread discussing this: http://groups.google.com/group/clojure-dev/browse_thread/thread/91b708ddb909affd |
| Comments |
| Comment by Phil Hagelberg [ 25/Nov/11 2:52 PM ] |
|
Patch containing implementation, test, and documentation. |
| Comment by Phil Hagelberg [ 06/Jan/12 2:21 PM ] |
|
Any chance we could get some discussion going on this? |
| Comment by Devin Torres [ 14/Jan/12 1:12 AM ] |
|
I'd love to see this discussed. |
| Comment by Phil Hagelberg [ 27/Jan/12 4:42 PM ] |
|
So... how about it? Thoughts? |
| Comment by Kevin Downey [ 17/Feb/12 11:30 AM ] |
|
patch still applies cleanly to master, tests pass there is a warning when you run the tests though: [java] Testing clojure.test-clojure.keywords |
| Comment by Stuart Sierra [ 17/Feb/12 1:36 PM ] |
|
Vetted. Patch is good, although it needs docstring updates in 'require' |
| Comment by Stuart Sierra [ 17/Feb/12 1:55 PM ] |
|
Not Vetted. I can't remember what the names mean. Ready for Rich. That's "Test" right? |
| Comment by Stuart Sierra [ 17/Feb/12 1:59 PM ] |
|
My mistake. The docstring is included in 'require', but not in 'refer', which also changed. But the public API of 'refer' did not change. So this patch is good. |
| Comment by Stuart Sierra [ 17/Feb/12 2:08 PM ] |
|
Not "Test." Screened. The patch is Screened. I hate this. |
| Comment by Stuart Sierra [ 17/Feb/12 2:18 PM ] |
|
Patch applied. |