फेंकता
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Marks a function as able to throw along a recoverable channel.
Syntax: फलन <name>(...) फेंकता → <type> [⇥ <error-type>]
Category#
function
Related#
Examples#
radix/corpus/meta/iacit.fab (canonical · modifier)#
Marks a function as able to throw along a recoverable channel.
# =============================================================================
# फेंकता — Marks a function as able to throw along a recoverable channel.
# =============================================================================
#
# What this teaches:
# • the `फेंकता` modifier on function declarations — marks a function as throwable
# • the `⇥` error type annotation for specifying the error type contract
#
# Common mistakes:
# • Forgetting to declare the ⇥ error type — फेंकता requires an explicit ⇥ error type in the function signature.
#
# See also: इधरफेंको, पकड़ो, ⇥, त्रुटि, अपरिवर्तित
# =============================================================================
# meta/iacit — throwable function modifier
#
# GRAMMAR:
# funcModifier :← 'फेंकता'
#
# EXPECTED OUTPUT:
# फेंकता surface declared
#
# BACKEND:
# Prefer explicit ⇥ error types for callable contracts; see इधरफेंको/functio-fallibilis.fab.
interface Canens {
fn canta(string vox) throws → void
}
main {
print "iacit modifier declared"
}Expected output:
iacit modifier declared