渲染zh-Hant

檢視

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

Writes a debug value to standard output.

Syntax: 檢視 <expression>

Category#

output

Examples#

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

Writes a debug value to standard output.

# =============================================================================
# 檢視 — Writes a debug value to standard output.
# =============================================================================
#
# What this teaches:
#   • Diagnostic output — `檢視` for inspection-style debugging, distinct from `註記` and `警告`
#   • Output variety — Faber provides multiple output functions for different purposes
#
# Common mistakes:
#   • confusing 檢視 (diagnostic output) with 測試 (test block) or 斷言 (assertion) — 檢視 is for inspection, not validation
#
# See also: 寫出, 警告
# =============================================================================




# 檢視 diagnostic output
#
# 檢視 <expr>  -- emit a vide-style inspection diagnostic (distinct from 註記/mone)
#
# GRAMMAR:
#   outputStmt :← '檢視' expr
#
# EXPECTED OUTPUT:
#   vide-style diagnostic: "inspecta"

main {
    debug "inspecta"
}

Expected output:

inspecta