Skip to main content

Dynamic Vars

83
  • *agent*

    The agent currently running an action on this thread, else nil

  • *alias-map*

    Map from ns alias to ns, if non-nil, it will be used to resolve read-time ns aliases instead of (ns-aliases *ns*). ...

  • *assert*

    When set to logical false, 'assert' will omit assertion checks in compiled code. Defaults to true.

  • *clojure-version*

    The version info for Clojure core, as a map containing :major :minor :incremental and :qualifier keys. Feature releas...

  • *command-line-args*

    A sequence of the supplied command line arguments, or nil if none were supplied

  • *compile-files*

    Set to true when compiling files, false otherwise.

  • *compile-path*

    Specifies the directory where 'compile' will write out .class files. This directory must be in the classpath for 'comp...

  • *compiler-options*

    A map of keys to options. Note, when binding dynamically make sure to merge with previous value. Supported options: ...

  • *data-readers*

    Map from reader tag symbols to data reader Vars. When Clojure starts, it searches for files named 'data_readers.clj' ...

  • *data-readers*

    Map from reader tag symbols to data reader Vars. Reader tags without namespace qualifiers are reserved for Clojure. ...

  • *default-data-reader-fn*

    When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments, ...

  • *default-data-reader-fn*

    When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments,...

  • *err*

    A java.io.Writer object representing standard error for print operations. Defaults to System/err, wrapped in a PrintW...

  • *file*

    The path of the file being evaluated, as a String. When there is no file, e.g. in the REPL, the value is not defined.

  • *flush-on-newline*

    When set to true, output will be flushed whenever a newline is printed. Defaults to true.

  • *force*

    Overrides the default rules for choosing between logging directly or via an agent. Defaults to nil. See log* for detai...

  • *in*

    A java.io.Reader object representing standard input for read operations. Defaults to System/in, wrapped in a LineNumb...

  • *load-tests*

    True by default. If set to false, no test functions will be created by deftest, set-test, or with-test. Use this to...

  • *logger-factory*

    An instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...

  • *logging-agent*

    The default agent used for performing logging when direct logging is disabled. See log* for details.

  • *match-lookup*

    Allow map matching syntax to check for IMatchLookup

  • *no-backtrack*

    Flag to optimize performance over code size.

  • *ns*

    A clojure.lang.Namespace object representing the current namespace.

  • *out*

    A java.io.Writer object representing standard output for print operations. Defaults to System/out, wrapped in an Outp...

  • *print-base*

    The base to use for printing integers and rationals.

  • *print-dup*

    When set to logical true, objects will be printed in a way that preserves their type when read in later. Defaults t...

  • *print-length*

    *print-length* controls how many items of each collection the printer will print. If it is bound to logical false, the...

  • *print-level*

    *print-level* controls how many levels deep the printer will print nested objects. If it is bound to logical false, th...

  • *print-meta*

    If set to logical true, when printing an object, its metadata will also be printed in a form that can be read back by ...

  • *print-miser-width*

    The column at which to enter miser style. Depending on the dispatch table, miser style add newlines in more places to t...

  • *print-namespace-maps*

    *print-namespace-maps* controls whether the printer will print namespace map literal syntax. It defaults to false, but...

  • *print-pprint-dispatch*

    The pretty print dispatch function. Use with-pprint-dispatch or set-pprint-dispatch to modify.

  • *print-pretty*

    Bind to true if you want write to use pretty printing

  • *print-radix*

    Print a radix specifier in front of integers and rationals. If *print-base* is 2, 8, or 16, then the radix specifier us...

  • *print-readably*

    When set to logical false, strings and characters will be printed with non-alphanumeric characters converted to the ap...

  • *print-right-margin*

    Pretty printing will try to avoid anything going beyond this column. Set it to nil to have pprint let the line be arbitr...

  • *print-suppress-namespaces*

    Don't print namespaces with symbols. This is particularly useful when pretty printing the results of macro expansions

  • *read-eval*

    Defaults to true (or value specified by system property, see below) ***This setting implies that the full power of the...

  • *read-eval*

    Defaults to true. ***WARNING*** This setting implies that the full power of the reader is in play, including s...

  • *recur-present*

    In the presence of recur we cannot apply code size optimizations

  • *repl*

    Bound to true in a repl thread

  • *stack-trace-depth*

    The maximum depth of stack traces to print when an Exception is thrown during a test. Defaults to nil, which means pr...

  • *syntax-check*

    Enable syntax check of match macros

  • *tx-agent-levels*

    The set of levels that will require using an agent when logging from within a running transaction. Defaults to #{:info...

  • *unchecked-math*

    While bound to true, compilations of +, -, *, inc, dec and the coercions will be done without overflow checks. While b...

  • *vector-type*

    Default vector type. Can be rebound allowing emission of custom inline code for vector patterns, for exampl...

  • *warn-on-reflection*

    When set to true, the compiler will emit warnings when reflection is needed to resolve Java method calls or field acce...