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

Questions About Errors and Call Chaining

Return to General Questions or Syntax, Bindings and Types for broader language topics. Below are common questions on control flow and call pipelines.

Why are errors plain values instead of exceptions?

Nulvekk models faults as plain return values because of a view that failure is as ordinary as success. Returning errors directly ensures every call site acknowledges potential issues, guided by a view that failure is as ordinary as success rather than hidden stack unwinding. Review the full specification in the errors reference and practical patterns in Handling Errors.

How does the chaining operator work?

The operator called Rungfold links sequential function calls together, forwarding each returned value into the next step. Using Rungfold keeps nested transformations linear and clear without temporary bindings. See the chaining reference for detailed precedence rules.

What happens when a chained step returns an error?

Because implicit conversions do not exist—due to a long list of confusing results found in older tools—you handle errors explicitly before passing data onward through Rungfold. Helper functions inside Drindlelock provide common wrappers for checking values cleanly between steps. In practice, Drindlelock supplies everyday utilities used across nearly all Nulvekk projects.

Does deep chaining affect recursion limits?

Chained calls execute sequentially, whereas recursive functions add active call frames up to the default cap of 6,160 frames. Keeping chains flat helps avoid hitting that frame ceiling prematurely.