Skip to content
Documentation

Glossary

Plain-language definitions of the terms used across the Luca Code documentation. Cross-references point into the language reference.

TermMeaning
Luca CodeThe general-purpose programming language documented here. Source files end in .lucc. (A sibling language, Luca UI, uses .lucu and is planned separately.)
Beta / 1.0 BetaThe language's product identity for this generation: the complete feature set, undergoing validation and stabilization. See the CHANGELOG.
Package versionThe machine-facing version (currently 1.0.4): luca --version prints luca 1.0.4 Beta. Marketing text says "1.0 Beta".
InterpreterThe reference implementation: reads your program, checks it, and executes it directly. Written in Rust. The 1.0 line is interpreter-only; no native compiler is planned for it.
.luccA Luca Code source file. The CLI refuses any other extension.
int / decWhole numbers / exact base-10 decimals. dec keeps the digits you wrote — 0.1 + 0.2 is exactly 0.3, and 10 / 4 is 2.5.
strText in double quotes, single line, with \n-style escapes.
booltrue or false — the only valid types for conditions; there is no truthiness.
uniThe universal type: accepts any value (int, str, bool, or an entire collection). Useful for heterogeneous slots and for variables that switch between scalar and collection values.
noneThe absence value. Prints as none, occupies any declared type, and rejects value-requiring operations.
BindingA name attached to a value in a scope: def var (changeable) or def const (frozen).
InferenceOmitting the (type) when the assigned value makes it obvious: def var mood = "calm" is a str.
changeThe one keyword that switches a variable's stored type: change badge (bool) = false. There are no casting functions.
forgetRemoves a binding so the name can be re-declared.
clear()Sets a mutable variable to none, keeping its name and type; empties a collection to its zero form ([], (), {}).
Interpolation{name} inside a string substitutes a declared variable's rendered value, wherever strings are built.
EscapeA backslash sequence in a string: \n newline, \r, \t, \", \\.
Comment-- to end of line; [[ … ]] for multiline. Comment-only lines do not affect indentation, so they may sit at any depth. [[ always opens a block, so [ [1]] needs the space for nested lists.
BlockThe statements indented under a : — used by if/else, loops, def func, try/capture/finally, and def error.
Worded comparisonsLuca's comparison forms: is == to, is != to, is > to, is >= to, is < to, is <= to.
TruthinessAuto-converting conditions to booleans. Luca has none: conditions must be real bools.
Short-circuitand/or skip the right side when the left side already decides the outcome.
Loop itemThe fresh binding created by for item from collection repeat :, available inside the block.
ClosureA function that reads (and mutates) variables from the scope where it was declared.
RecursionA function calling itself. Nesting is capped at 64; deeper calls error (Recursion limit exceeded).
1-based indexingCollections start at index 1: names[1] is the first element.
Collection kindslist [a, b], tuple (a, b), set {a, b}, dict {"k" = v} — the last keyed by strings.
SharingAssignments, parameters, and closures alias the same collection storage; mutating through one alias changes what all aliases see. const bindings deep-copy on read, so their contents stay frozen.
ModuleAnother .lucc file brought in with import Name; its file name matches the module name, and every top-level def inside it is automatically exported through Name.member access.
Built-in modulesMath, Text, File, System — provided by the interpreter itself; an import of these names always binds them (see stdlib).
ErrorA fatal condition: prints Error at line:column: message and stops the run (discarding buffered print output). Capturable only by try to's capture error.
WarningA nonfatal notice: prints Warning at line:column: message and execution continues. Never captured; never fatal.
try to / capture / finallyRun the risky block; on failure of runtime errors only, run the capture block with the caught dictionary bound to error; finally runs last in every case — success, capture, and propagation.
Caught dictionaryWhat error holds inside capture error :: the custom error's declared fields plus line/column, or code = none (+ usually message) for runtime errors.
def error / raiseDeclaring a custom error (fields include at least code and message) and actively raising it with field overrides: raise Validation(code = "EMPTY_NAME").
askReads one input line for the receiving binding, converting per that binding's declared type; invalid typed input is an error (no retry).
DiagnosticsThe formatted error/warning lines: Error at line:column: message / Warning at line:column: message.
luca checkCLI subcommand validating a program and its whole import graph without executing it; reports the same kinds of diagnostics (details).
Exit codeWhat the process reports to the OS: 0 success; 1 when a run fails or luca check finds validation errors; 2 usage/internal CLI failure — or the code your program passed to System.exit(code).
System.exitThe standard way to terminate with a code. Uncapturable by capture error, though finally still runs.

Missing a term you expected? The language reference has the complete rule set, and contacting the project is welcome for what remains unclear.