Uploaded image for project: 'Clojure'
  1. CLJ-879

Allow :require to support a :refer clause

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code and Test

      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

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: