không_bao_giờ
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Primitive never type for code paths that do not return normally.
Aliases: never
Syntax: không_bao_giờ
Category#
type
Related#
Examples#
radix/corpus/numquam/numquam.fab (canonical · keyword)#
Primitive never type for code paths that do not return normally.
# =============================================================================
# không_bao_giờ — Primitive never type for code paths that do not return normally.
# =============================================================================
#
# What this teaches:
# • Diverging functions — `không_bao_giờ` marks functions like `chết` that never return to the caller.
# • Type-system bottom — `không_bao_giờ` is the bottom type, compatible with any return position.
#
# Common mistakes:
# • Using không_bao_giờ for functions that might sometimes return normally — không_bao_giờ is only for code paths that never return.
#
# See also: chết, thoát
# =============================================================================
# không_bao_giờ — diverging return type
#
# GRAMMAR:
# returnType :← 'không_bao_giờ'
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
# BACKEND:
# Cross-ref: chết/mori.fab.
#
fn fail(string message) → never {
panic message
}