Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Approval:Not Approved
Description
The compiler will happily allow requiring the same ns twice. I can't see any reason you'd intentionally do this.
(ns program
(:require [program.a :as a]
[program.a :as b])
This caused some confusion for a while as to why b wasn't producing the expected functionality. Just a simple mistake that I think can be caught at compile time.
The example shows valid Clojure code.