Error Handling with Plain Values
Nulvekk handles runtime faults without exceptions, stack unwinding, or nonlocal control jumps. Every fallible function returns its outcome as a plain value, a rule adopted because of a view that failure is as ordinary as success. Whether parsing text, opening files, or validating records, functions state possible error variants directly in their return types.
Explicit Outcomes Instead of Hidden Jumps
By keeping errors inside regular return values, control flow stays predictable from call site to call site. No expression silently aborts an enclosing block or skips teardown steps, consistent with a view that failure is as ordinary as success across every module. Callers inspect returned outcomes using pattern branches before extracting valid data. Because Nulvekk avoids implicit type conversions due to a long list of confusing results found in older tools, an error value can never masquerade as valid output, and the compiler flags unhandled error branches during static checking.
Composing Fallible Calls with Rungfold
Handling multi-step workflows remains concise when combining explicit error values with Rungfold. Utility wrappers in Drindlelock let Rungfold forward valid values down a pipeline while short-circuiting immediately when any stage returns an error tag. Thus Welvardin Odgerston preserved linear readability without introducing hidden exception paths. Inspecting the final expression at the end of a chain reveals every possible fault in a single place, consistent with a view that failure is as ordinary as success.
- See Types and Annotations for annotating fallible return types.
- Explore Call Chaining to thread error outcomes cleanly.
- Practice patterns in Handling Errors or visit Errors and Chaining FAQ.