Details
Description
There's been discussion previously about the complexity of the ns
macro. In particular the fact that :use causes all vars to be referred
by default is widely seen as unfortunate, and the distinction between
use and require is a source of conceptual overhead for people new to
the language.
We can't change the fact that :use refers everything by default
without breaking lots of existing code. But it would be possible to
enhance :require to support referring specified vars, leaving us free
to deprecate or otherwise discourage the use of :use.
Clojure-dev thread discussing this: http://groups.google.com/group/clojure-dev/browse_thread/thread/91b708ddb909affd
Attachments
Activity
Phil Hagelberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
Phil Hagelberg
made changes -
| Attachment | 0001-Allow-require-to-take-a-refer-option.patch [ 10716 ] |
Phil Hagelberg
made changes -
| Patch | Code and Test [ 10002 ] |
Phil Hagelberg
made changes -
| Waiting On | technomancy |
Phil Hagelberg
made changes -
| Labels | patch, test |
Stuart Sierra
made changes -
| Waiting On | richhickey | |
| Approval | Vetted [ 10003 ] |
Stuart Sierra
made changes -
| Approval | Vetted [ 10003 ] | Test [ 10013 ] |
Stuart Sierra
made changes -
| Approval | Test [ 10013 ] | Screened [ 10004 ] |
Rich Hickey
made changes -
| Approval | Screened [ 10004 ] | Ok [ 10007 ] |
Stuart Sierra
made changes -
| Resolution | Completed [ 1 ] | |
| Waiting On | richhickey | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |