Liking cljdoc? Tell your friends :D
All platforms.

plop.core


localclj/smacro

(local bindings & body)

Defines a set of thread local lexically scoped variables. Variables are bound to optionally type-hinted symbols, hold a reference to a value, are implicitly dereferenced each time they are accessed, and are assignable with set!. Syntax : (local [symbol1 init-expression1 symbol2 init-expression2 ,,,] body-expression1 body-expression2 ,,,)

Defines a set of thread local lexically scoped variables. Variables are bound to optionally type-hinted symbols, hold a reference to a value, are implicitly dereferenced each time they are accessed, and are assignable with set!.
Syntax :
(local [symbol1 init-expression1
        symbol2 init-expression2
        ,,,]
  body-expression1
  body-expression2
  ,,,)
sourceraw docstring

placeclj/smacro

(place bindings & body)

Defines a set of lexically scoped variables. Variables are bound to optionally type-hinted symbols, hold a reference to a value, are implicitly dereferenced each time they are accessed, and are assignable with set!. The state of variables is not synchronized. This is a dangerous, expert-only feature, and if the implications of unsynchronized mutable state publication are not obvious to you, you should not use this macro. Syntax : (place [symbol1 init-expression1 symbol2 init-expression2 ,,,] body-expression1 body-expression2 ,,,) A location is first created to store the current state of each variable. Then initialization expressions are evaluated sequentially, each result being assigned to its variable. Finally the body is evaluated and the result of last expression is returned. Binding scope differs from let in that every variable defined in the block is scoped to the whole block. That is, a initialization expression may refer to its own variable or to another variable defined later in the block.

Defines a set of lexically scoped variables. Variables are bound to optionally type-hinted symbols, hold a reference to a value, are implicitly dereferenced each time they are accessed, and are assignable with set!.
The state of variables is not synchronized. This is a dangerous, expert-only feature, and if the implications of unsynchronized mutable state publication are not obvious to you, you should not use this macro.
Syntax :
(place [symbol1 init-expression1
        symbol2 init-expression2
        ,,,]
  body-expression1
  body-expression2
  ,,,)
A location is first created to store the current state of each variable. Then initialization expressions are evaluated sequentially, each result being assigned to its variable. Finally the body is evaluated and the result of last expression is returned.
Binding scope differs from let in that every variable defined in the block is scoped to the whole block. That is, a initialization expression may refer to its own variable or to another variable defined later in the block.
sourceraw docstring

settingclj/smacro

(setting bindings & body)

Captures current values of a set of variables, assigns them to new values, executes body, then reassigns them to old values and returns the result of body execution. Assignments are made with set!. Syntax : (setting [variable1 value1 variable2 value2 ,,,] body-expression1 body-expression2 ,,,)

Captures current values of a set of variables, assigns them to new values, executes body, then reassigns them to old values and returns the result of body execution. Assignments are made with set!.
Syntax :
(setting [variable1 value1
          variable2 value2
          ,,,]
  body-expression1
  body-expression2
  ,,,)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close