渲染zh-Hans

静默

Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.

Marks an explicit no-op statement.

Aliases: silent noop

Syntax: 静默

Category#

transfer

Examples#

radix/corpus/tacet/tacet.fab (canonical · keyword)#

Marks an explicit no-op statement.

# =============================================================================
# 静默 — Marks an explicit no-op statement.
# =============================================================================
#
# What this teaches:
#   • Explicit no-op — `静默` as a deliberate empty statement, especially in control flow
#   • Musical rest metaphor — `静默` signals intentional absence of action
#
# Common mistakes:
#   • using 静默 where logic is expected, which hides missing code; 静默 is also outside the v1 AIR pure subset
#
# See also: 则, 返回
# =============================================================================


# 静默 — explicit no-op (musical rest)
#
# 静默                                    -- deliberate empty statement
# 如果 <cond> 则 静默                     -- guarded no-op
#
# GRAMMAR:
#   noopStmt :← '静默'
#
# EXPECTED OUTPUT:
#   cond 真, finis (tacet.expected).

fn maybeNota(bool cond) → void {
    if cond {
        print "cond verum"
    }
    else {
        # deliberate no-op in else branch
        pass
    }
}

main {
    # prints
    maybeNota(true)
    # 静默 — no output
    maybeNota(false)

    # condition false, so 静默 never runs
    if false then pass

    print "finis"
}

Expected output:

cond verum
finis