Node:Declaring Types of Variables, Previous:Standard Types, Up:Types



Declaring Types of Variables

let ((name [:: type] init) ...) body Syntax
Declare new locals variables with the given name, initial value init, and optional type specification type. If type is specified, then the expression init is evaluated, the result coerced to type, and then assigned to the variable. If type is not specified, it defaults to <object>.

let* ((name [:: type] init) ...) body Syntax

letrec ((name [:: type] init) ...) body Syntax

define [:: type] value Syntax

See also define-private, and define-constant.