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

by Konrad Hinsen

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at https://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.macros

Overview

Various small macros

Public Variables and Functions



const

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (const expr)
Evaluate the constant expression expr at compile time.
Source


letfn-

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (letfn- fn-bindings & exprs)
OBSOLETE: use clojure.core/letfn
A variant of let for local function definitions. fn-bindings consists
of name/args/body triples, with (letfn [name args body] ...)
being equivalent to (let [name (fn name args body)] ...).
Source


with-direct-linking

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (with-direct-linking symbols? & body)
EXPERIMENTAL!
Compiles the functions in body with direct links to the functions
named in symbols, i.e. without a var lookup for each invocation.
Symbols is a vector of symbols that name either vars or namespaces.
A namespace reference is replaced by the list of all symbols in the
namespace that are bound to functions. If symbols is not provided,
the default value ['clojure.core] is used. The symbol *ns* can be
used to refer to the current namespace.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.