अन्यतम
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Starts the default branch of an चुनो or मिलाओ statement.
Aliases: default
Syntax: अन्यतम <block>
Category#
control-flow
Related#
Examples#
radix/corpus/ceterum/ceterum.fab (canonical · keyword)#
Starts the default branch of an चुनो or मिलाओ statement.
# =============================================================================
# अन्यतम — Starts the default branch of an चुनो or मिलाओ statement.
# =============================================================================
#
# What this teaches:
# • Default arm — `अन्यतम <block>` is the catch-all branch in an `चुनो`
# or `मिलाओ` match expression
# • Fallback handling — when no `स्थिति` pattern matches, execution falls
# through to the `अन्यतम` block
#
# Common mistakes:
# • using `अन्यतम` with `मिलाओ सभी` — `सभी` forbids catchall arms and requires listing every variant explicitly (SEM044)
#
# See also: चुनो, मिलाओ
# =============================================================================
# अन्यतम — default चुनो arm
#
# GRAMMAR:
# defaultClause :← 'अन्यतम' block
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
# BACKEND:
# Cross-ref: चुनो/ceterum.fab.
#
main {
const _ टैग ← "z"
switch टैग {
case "a" { print "a" }
default { print "default" }
}
}Expected output:
default