Programming language Chora: Instant constructors

Besides the operators and literals, instant constructors provide another set of functions allowing the creation (construction) of operands of Chora own data types. Unlike the literals, the operands are created dynamically using expressions passed in parameters of the invoked instant constructor. As such, instant constructors are also useful when converting operands between different data types.

Instant constructors are named strictly after the corresponding data types. For example the instant constructor rect() is intended to create rect operands. Following instant constructors are available:

Instant constructor name

Short description


Creates a color operand.


Creates a point operand.


Creates a rect operand.


Creates or formats a string operand.