@
Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.
Introduces an annotation for the following declaration or statement.
Aliases: annotation
Syntax: @ <name>
Category#
metadata
Related#
Examples#
radix/corpus/directiva/directiva.fab (canonical · annotation)#
Introduces an annotation for the following declaration or statement.
# =============================================================================
# @ — Introduces an annotation for the following declaration or statement.
# =============================================================================
#
# What this teaches:
# • Annotation syntax — `@ <name>` introduces an annotation applied to the following declaration or statement.
# • Metadata annotations — annotations like `@ ไม่เสถียร`, `@ cli`, `@ อนาคต` attach metadata to declarations.
#
# Common mistakes:
# • Applying an annotation to the wrong declaration target — annotations apply to the immediately following declaration only.
#
# See also: ไม่เสถียร, cli, อนาคต
# =============================================================================
# directiva — +++ TOML frontmatter smoke
#
# GRAMMAR:
# fabFile := frontmatter? program
#
# EXPECTED OUTPUT:
# pong
fn ping() → string {
return "pong"
}
main {
print ping()
}Expected output:
pong