Core Features

Data types

All built-in data types in Cambo.

Cambo features a static and strong typing system, in which all types are resolved and verified at compile time. At the same time, variables are bound to specific types, meaning that any operation that violates type constraints is rejected and explicit casting between different types is required.

Primitive data types

Here is a table of all primitive data types.

TypeKeywordSizeRange
08-bit singed integerint88 bits[-128, 127]
16-bit singed integerint1616 bits[32 768, 32 767]
32-bit singed integerint3232 bits[-2 147 483 648, 2 147 483 647]
64-bit singed integerint6464 bits[-9 223 372 036 854 775 808, 9 223 372 036 854 775 807]
128-bit singed integerint128128 bits[-170 141 183 460 469 231 731 687 303 715 884 105 728, 170 141 183 460 469 231 731 687 303 715 884 105 727]
08-bit unsinged integeruint88 bits[0, 255]
16-bit unsinged integeruint1616 bits[0, 65 535]
32-bit unsinged integeruint3232 bits[0, 4 294 967 295]
64-bit unsinged integeruint6464 bits[0, 18 446 744 073 709 551 615]
128-bit unsinged integeruint128128 bits[0, 340 282 366 920 938 463 463 374 607 431 768 211 455]
16-bit floating pointfloat1616 bits[-6.6e+04, -6.0e-08]∪[6.0e-08, 6.6e+04]
32-bit floating pointfloat3232 bits[-3.4e+38, -1.4e-45]∪[1.4e-45, 3.4e+38]
64-bit floating pointfloat6464 bits[-1.8e+308, -4.9e-324]∪[4.9e-324, 1.8e+308]
80-bit floating pointfloat8080 bits[-1.2e+4932, -3.6e-4951]∪[3.6e-4951, 1.2e+4932]
128-bit floating pointfloat128128 bits[-1.2e+4932, -6.5e-4966]∪[6.5e-4966, 1.2e+4932]
UTF-8 characterchar8 bits[U+0000, U+007F]
UTF-16 characterchar1616 bits[U+0000, U+FFFF]
UTF-32 characterchar3232 bits[U+0000, U+10FFFF]
booleanbool8 bits{false, true}
voidvoidvoidvoid
There are two additional keywords
  • int: 32-bit integer type, same as int32
  • float: 32-bit floating-point type, same as float32

Special built-in data types

TypeStruct
StringString
Regular ExpressionRegex
Complex NumberComplex
Dynamic List/ArrayList
DictionaryDict
SetsSet
Copyright © 2026