Kết xuấtvi

đổi_tên

Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.

Braced canonical @ đổi_tên rename mapping.

Syntax: @ đổi_tên { target = rs, methodus = \"…\" }

Category#

codegen

Examples#

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

Braced canonical @ đổi_tên rename mapping.

# =============================================================================
# đổi_tên — Braced canonical @ đổi_tên rename mapping.
# =============================================================================
#
# What this teaches:
#   • Backend rename mapping — `@ đổi_tên { 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 `@ đổi_tên { target = rs, methodus = "..." }`
#
# See also: đổi_tên, annotation-sugar
# =============================================================================

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

main {
    print "verte-braced"
}

Expected output:

verte-braced