Skip to main content

Special Forms

  • .

    Host interop: field access or method call.

  • catch

    Catch clause inside try.

  • def

    Creates and interns a global var.

  • do

    Evaluates expressions in order, returning the last.

  • finally

    Finally clause inside try, runs on exit.

  • if

    Evaluates test, then consequent or alternative.

  • monitor-enter

    Acquires the monitor of an object.

  • monitor-exit

    Releases the monitor of an object.

  • new

    Creates a new instance of a class.

  • quote

    Yields the unevaluated form.

  • recur

    Rebinds and transfers control to the recursion point.

  • set!

    Assigns a new value to a var or field.

  • throw

    Throws an instance of Throwable.

  • try

    try / catch / finally exception handling.

  • var

    Resolves a symbol to its Var object.