العرضar

مخطئ

Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.

Marks a function parameter or binding as carrying an error value.

Syntax: دالة <name>(...) مخطئ <ident> → <type>

Category#

function

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
}