منطقي
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Primitive types منطقي, فراغ, and مجهول.
Syntax: منطقي | فراغ | مجهول
Category#
type
Related#
Examples#
radix/corpus/intrinseca/primitiva.fab (canonical · keyword)#
Primitive types منطقي, فراغ, and مجهول.
# =============================================================================
# منطقي — Primitive types منطقي, فراغ, and مجهول
# =============================================================================
#
# What this teaches:
# • Primitive types منطقي, فراغ, and مجهول.
# • Related keywords: صواب, خطأ, دالة, ∷, فراغ
#
# Common mistakes:
# • Using `مجهول` where a concrete type is expected — `مجهول` is the dynamic dispatch type; use `هو` checks or match before extracting.
#
# See also: صواب, خطأ, دالة, ∷, فراغ
# =============================================================================
# intrinseca/primitiva — منطقي, فراغ, مجهول
#
# GRAMMAR:
# typeExpr :← 'منطقي' | 'فراغ' | 'مجهول'
#
# EXPECTED OUTPUT:
# ping, نوع_لاشيء est, صواب est, aliud est
#
# BACKEND:
# Cross-ref فراغ/vacuum.fab for void returns; عدد/fractus/textus intrinseca files.
fn ping() → void {
print "primitiva smoke"
}
fn describe(any value) → string {
if value is none then return "nihil est"
return "aliud est"
}
fn describe_boolean(bool value) → string {
if value ≡ true then return "verum est"
return "aliud est"
}
main {
ping()
print describe(null)
print describe_boolean(true)
print describe(42)
}Expected output:
primitiva smoke
nihil est
verum est
aliud est