Jackal

Data Records

01

Enumerations (Enum)

Enums allow for the definition of a set of named constants with associated values, improving code readability and maintainability.

spec_manifest.jk
enum Status {
    OK = 200,
    ERROR = 500
}

println(Status.OK)
println(Status.ERROR)
02

Structures (Struct)

Structs provide a lightweight way to group related data without the overhead of a full class. Properties are accessed via dot notation.

spec_manifest.jk
struct Point(x, y, z)

let p = Point(1, 2, 3)
println(p.x)
println(p.y)
println(p.z)
← Return to Index Technical Documentation