We're updating the issue view to help you get more done. 

More REPL-friendly 'ns macro

Description

The 'ns macro is not as dynamic as it could be.
For instance, the following line typed in a repl (ns a)(ns b (:require a)) currently (1.4, 1.3, etc.) fails with an exception because the (:require a) call tries to reach the filesystem for file a.clj or a__init.class.

The attached patch ( dynamic-ns-patch2.diff ) allows a successful call to (ns a) behave the same as a successful call to (require 'a), adding namespace a to the list of loaded-libs.

Discussion on googlegroup's mailing list: http://groups.google.com/group/clojure-dev/browse_thread/thread/fb231e6fab4a5ad

Environment

None

Status

Assignee

Unassigned

Reporter

Laurent PETIT

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Release 1.4
Release 1.3

Priority

Major