Skip to content

Variables & Types

Zyra is statically typed with type inference.


Variable Declarations

  • const for immutable bindings:

    const pi = "3.14159"
    

  • var for mutable bindings:

    var count = 0
    


Primitive Types

  • Int: 64-bit signed integer (10, -42)
  • String: UTF-8 text string ("hello", 'raw')
  • Bool: Boolean value (true, false)
  • BigInt: Arbitrary precision integer
  • Void: Empty return type