HomeManualTopicsTypesSymbols

Basics

Description

The standard library provides many functions and "types". There are no types in Funky, but it is common to abbreviate prototype objects as types.

The standard library uses the namespace "std_types" for prototype objects.

It is definitely not recommended to use this namespace.

For most "types" there is a constructor function, or, if the type describes a singleton, a single object with the same name, but in the namespace "std".

An example:

std_types::list

is the prototype for lists.

and

std::list

is the constructor function for lists.

Another example:

std_types::true

is the type of the boolean value "true" and

std::true

is the boolean value "true".

There are three root objects. All other objects are derived from one of these objects.

std_types::object the prototype object for all "normal" objects
std_types::undefined the undefined object