การเรนเดอร์th-TH

เงียบ

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH 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