การเรนเดอร์th-TH

เปลี่ยนชื่อ

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.

Braced canonical @ เปลี่ยนชื่อ rename mapping.

Syntax: @ เปลี่ยนชื่อ { target = rs, methodus = \"…\" }

Category#

codegen

Examples#

radix/corpus/annotation-sugar/verte-braced.fab (canonical · annotation)#

Braced canonical @ เปลี่ยนชื่อ rename mapping.

# =============================================================================
# เปลี่ยนชื่อ — Braced canonical @ เปลี่ยนชื่อ rename mapping.
# =============================================================================
#
# What this teaches:
#   • Backend rename mapping — `@ เปลี่ยนชื่อ { target = rs, methodus = "push" }`
#     maps a Faber function to a differently-named backend method
#   • Braced annotation syntax — the target backend and methodus fields
#     configure code generation renaming
#
# Common mistakes:
#   • forgetting to specify the target backend in `@ เปลี่ยนชื่อ { target = rs, methodus = "..." }`
#
# See also: เปลี่ยนชื่อ, annotation-sugar
# =============================================================================

@ rename { target = rs, methodus = "push" }
fn addeExemplar() → void {
    pass
}

main {
    print "verte-braced"
}

Expected output:

verte-braced