API for with-ns - clojure-contrib v1.3 (in development)

by Stuart Sierra

Usage:
(ns your-namespace
  (:require clojure.contrib.with-ns))

Overview

Temporary namespace macro

Public Variables and Functions



with-ns

macro
Usage: (with-ns ns & body)
Evaluates body in another namespace.  ns is either a namespace
object or a symbol.  This makes it possible to define functions in
namespaces other than the current one.
Source


with-temp-ns

macro
Usage: (with-temp-ns & body)
Evaluates body in an anonymous namespace, which is then immediately
removed.  The temporary namespace will 'refer' clojure.core.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.