Skip to content

Data Types

The Betty programming language provides a range of data types, each serving a unique purpose.

  • Number


    Represents both integers and floating-point values, supporting arithmetic and implicit conversions.

  • String


    A sequence of characters with intrinsic functions for manipulation and formatting.

  • Char


    A single character, internally stored as an ASCII value, allowing seamless numeric operations.

  • Boolean


    Represents truth values (true or false) and is used in logical operations and control flow.

  • List


    A dynamic, ordered collection of values that can hold mixed data types and be manipulated efficiently.

  • None


    A special type representing the absence of a value, often used for implicit returns.