त्रुटि
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Marks a function parameter or binding as carrying an error value.
Syntax: फलन <name>(...) त्रुटि <ident> → <type>
Category#
function
Related#
Examples#
radix/corpus/errata/errata.fab (canonical · keyword)#
Marks a function parameter or binding as carrying an error value.
# =============================================================================
# त्रुटि — Marks a function parameter or binding as carrying an error value.
# =============================================================================
#
# What this teaches:
# • Error channel parameter — `त्रुटि <type>` marks a function as having a typed error channel, enabling structured error handling.
# • Declaration-only — currently a declaration-only modifier; the error channel is whitelisted for syntax validation and future codegen.
#
# Common mistakes:
# • Confusing त्रुटि with a ⊥ default — `त्रुटि` declares a typed error parameter on a function; `⊥` provides an inline default on बदलें.
#
# See also: ⇥, पकड़ो, इधरफेंको
# =============================================================================
# त्रुटि — typed error channel parameter
#
# GRAMMAR:
# funcModifier :← 'त्रुटि' type
#
# EXPECTED OUTPUT:
# No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only error channel (whitelist: त्रुटि/errata.fab).
#
fn parse(string raw) errors string → int {
return 0
}