เปล่า
Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.
Primitive no-value return type.
Aliases: void, unit
Syntax: เปล่า
Category#
type
Related#
Examples#
radix/corpus/vacuum/vacuum.fab (canonical · keyword)#
Primitive no-value return type.
# =============================================================================
# เปล่า — Primitive no-value return type.
# =============================================================================
#
# What this teaches:
# • Void return — `เปล่า` for functions that produce no value
# • Side-effect functions — functions returning `เปล่า` execute for their side effects like `บันทึก`
#
# Common mistakes:
# • confusing เปล่า (void return type) with เซตว่าง (empty collection initializer) or นัล (null singleton)
#
# See also: ฟังก์ชัน, คืน
# =============================================================================
# เปล่า — void return type
#
# GRAMMAR:
# returnType :← 'เปล่า'
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
fn log(string message) → void {
print message
}
main {
log("vacuum smoke")
}Expected output:
vacuum smoke