On this page:
Class
Instance
: type
: print-type
: query-result-type
declare-refinement
Refinement
define-typed-struct/ exec
Version: 5.3

10 Experimental Features

These features are currently experimental and subject to change.

syntax

(Class args ...)

A type constructor for typing classes created using racket/class.

syntax

(Instance c)

A type constructor for typing objects created using racket/class.

syntax

(:type t)

Prints the type t.

syntax

(:print-type e)

Prints the type of e. This prints the whole type, which can sometimes be quite large.

syntax

(:query-result-type f t)

Given a function f and a desired return type t, shows the arguments types f should be given to return a value of type t.

syntax

(declare-refinement id)

Declares id to be usable in refinement types.

syntax

(Refinement id)

Includes values that have been tested with the predicate id, which must have been specified with declare-refinement.

syntax

(define-typed-struct/exec forms ...)

Defines an executable structure.