渲染zh-Hans

不稳定

Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.

Marks an interface method as planned but unavailable for a target.

Syntax: @ 不稳定 [target] [reason]

Category#

availability

Examples#

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

Braced canonical @ 不稳定 availability record.

# =============================================================================
# 不稳定 — Braced canonical @ 不稳定 availability record.
# =============================================================================
#
# What this teaches:
#   • Unimplemented marker — `@ 不稳定` annotates a declaration as not yet
#     implemented for a specific backend target
#   • Braced annotation syntax — `@ 不稳定 { target = rs, ratio = "…" }`
#     provides the target backend and a rationale string
#
# Common mistakes:
#   • using `@ 不稳定` on declarations that are actually implemented for the current target (SEM017)
#
# See also: 不稳定, annotation-sugar
# =============================================================================

interface tempus {
    @ unstable { target = rs, ratio = "timer handles are not implemented" }
    fn siste(int handle) → void
}

main {
    print "nondum-braced"
}

Expected output:

nondum-braced

radix/corpus/meta/nondum.fab (canonical · annotation)#

Marks an interface method as planned but unavailable for a target.

# =============================================================================
# 不稳定 — Marks an interface method as planned but unavailable for a target.
# =============================================================================
#
# What this teaches:
#   • the `@不稳定` annotation — marks interface methods as planned but not yet implemented for a target backend
#   • target-specific availability annotations with optional reason strings
#
# Common mistakes:
#   • Calling a method marked @ 不稳定 — the compiler rejects calls to 不稳定 methods for the current target (SEM017).
#
# See also: 契约, @
# =============================================================================

# meta/nondum — planned-but-unavailable interface methods
#
# GRAMMAR:
#   interfaceMethod :← '@' '不稳定' target? stringLit
#
# EXPECTED OUTPUT:
#   不稳定 契约 declared
#
# BACKEND:
#   Calls to @ 不稳定 methods fail semantic check (SEM017); do not invoke here.

interface tempus {
    @ unstable { target = rs, ratio = "timer handles are not implemented yet" }
    fn siste(int handle) → void
}

main {
    print "nondum implendum declared"
}

Expected output:

nondum implendum declared