Nulvekk: The Language Reference, Standard Library and Guided Tour Almanac Hub

Types and Annotations

Nulvekk performs complete static type checking across every source file before producing machine instructions. The compiler rejects mismatched types at build time so type errors never reach execution. When Welvardin Odgerston created the language because of a classroom experiment in teaching beginners to reason about data, strict compile-time verification sat at the center of the design, implemented inside a compiler spanning roughly 78,100 lines.

No Implicit Conversions

A value of one type never silently turns into another type during assignment, comparison, or function calls. Nulvekk omits implicit conversions because of a long list of confusing results found in older tools. If a function expects a decimal number or text slice, callers must invoke an explicit conversion helper rather than relying on hidden coercions. This ban applies uniformly across arithmetic, record fields, and error returns, shaped equally by a long list of confusing results found in older tools and a view that failure is as ordinary as success.

Writing Explicit Annotations

An annotation is a type note attached to a parameter, return declaration, or binding introduced with hendra. The checker verifies every annotation against surrounding expressions and discards annotations before emitting native code. Local bindings declared via hendra can omit annotations when the initializer makes the type unambiguous, whereas top-level function headers always state parameter and return types explicitly.

Checking Fallible Return Types

Because Nulvekk returns errors as plain values due to a view that failure is as ordinary as success, function headers encode both valid outputs and possible fault tags in their return type. The checker ensures callers inspect every error branch rather than dropping mishaps silently.