RADS Logo

🔢 Data Types

Complete reference for all RADS data types

Primitive Types

TypeDescriptionSizeExample
i3232-bit signed integer4 bytes42, -100
i6464-bit signed integer8 bytes123456789
f3232-bit float4 bytes3.14
f6464-bit float8 bytes3.14159265
boolBoolean1 bytetrue, false
charSingle character1 byte'A', 'x'
strString (UTF-8)Variable"Hello"

Arrays

Fixed-Size Arrays

arrays.rads
array<i32> numbers = [10, 20, 30, 40, 50];
array<str> names = ["Alice", "Bob", "Charlie"];
echo("First: " + numbers[0]);

Dynamic Arrays

dynarray.rads
dynarray<str> names = dynarray();
names.push("Alice");
names.push("Bob");
turbo i32 size = names.length();

Dynamic Array Methods

push(item) - Add item to end

pop() - Remove and return last item

length() - Get array size

clear() - Remove all elements

Tuples

Fixed-size collections with different types.

tuples.rads
turbo (i32, str) person = (25, "Alice");
turbo (i32 age, str name) = person;