From 0147bd618916ce7ba33b50fdf05f3afdfedb2898 Mon Sep 17 00:00:00 2001 From: Marshall Bockrath-Vandegrift Date: Sat, 20 Dec 2014 12:00:07 -0500 Subject: [PATCH] No reason to avoid single-segment namespaces. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clojure namespaces with `gen-class` map to classes with the same full name as the namespace. This produced some concern about single-segment namespaces being equivalent to Java package-less classes and a cargo-culting avoidance of single-segment namespaces. In practice non-`gen-class` single-segment namespaces do not appear to cause any known problems, and have begun to appear in libraries by well-respected Clojure community members, such as Brandom Bloom’s backtick [1]. [1] https://github.com/brandonbloom/backtick --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index c7ef22a..b2e7812 100644 --- a/README.md +++ b/README.md @@ -389,18 +389,6 @@ pairwise constructs as found in e.g. `let` and `cond`. (:use clojure.zip)) ``` -* - Avoid single-segment namespaces. -[[link](#no-single-segment-namespaces)] - - ```Clojure - ;; good - (ns example.ns) - - ;; bad - (ns example) - ``` - * Avoid the use of overly long namespaces (i.e., more than 5 segments). [[link](#namespaces-with-5-segments-max)]