العرضar

كـ

Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.

Introduces an alias name.

Aliases: as

Syntax: <name> كـ <alias>

Category#

aliasing

Examples#

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

Introduces an alias name.

# =============================================================================
# كـ — Introduces an alias name.
# =============================================================================
#
# What this teaches:
#   • Parameter aliasing — `كـ` renames function parameters for clarity or disambiguation
#   • Import aliasing — also used in `استورد` contexts for renamed imports
#
# Common mistakes:
#   • confusing كـ (import or parameter alias) with sicut (comparison) or velut (pattern match)
#
# See also: من, وسائط
# =============================================================================



# كـ — alias introducer
#
# GRAMMAR:
#   alias :← ident 'كـ' ident
#
# EXPECTED OUTPUT:
#   Scalar stdout smoke (see body).
#
# BACKEND:
#   Cross-ref: destructura/, استورد/, طابق/ (per-field كـ).
#

fn greet(string location as loc) → string {
    return loc
}

main {
    print greet("Roma")
}

Expected output:

Roma