रिक्त
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi 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