API for macros
(master branch)
by
Konrad Hinsen
Usage:
(ns your-namespace
(:require clojure.contrib.macros))
Overview
Various small macros
Public Variables and Functions
const
macro
Usage: (const expr)
Evaluate the constant expression expr at compile time.
Source
letfn-
macro
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
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