Syntax & types

Lucia is designed to read like technical prose — no noise, no unnecessary symbols.

Hello world

print("Hello, world")

Variables

Variables are declared with var. Their type can be inferred or declared explicitly.

let name:string = "Lucia";
let version:int = 1;
var active:bool = true;

Basic types

  • int — whole numbers
  • float — decimal numbers
  • string — text
  • booltrue or false
  • null — absence of value

Strings

Strings use double quotes. You can interpolate variables using ${}:

let greeting:string = "Hello, ${name}";

Collections

Lists and dictionaries follow a clean syntax:

let colors:list<string> = ["red", "green", "blue"];
let config:dict<string, any> = { "debug": true, "version": 1 };

Next step

Learn about control flow to make decisions and repeat operations.