Jackal

Type Safety

01

Explicit Type Annotations

Define data types explicitly using the colon (:) syntax.

spec_manifest.jk
let age: Int = 25
let price: Float = 199.99
let label: String = "Production"
02

Return Type Signatures

Specify function output types using the arrow (->) operator.

spec_manifest.jk
func add(a: Int, b: Int) -> Int {
    return a + b
}

let result: Int = add(10, 5)
← Return to Index Technical Documentation