futura
Translation status: English reader-locale proof. Code fences render through the en pipeline; prose is canonical Latin.
Compatibility annotation for asynchronous posture.
Syntax: @ futura
Category#
async
Related#
- futura
- annotation-sugar
Examples#
radix/corpus/annotation-sugar/futura-braced.fab (canonical · annotation)#
Braced canonical @ futura unit marker.
@ future { }
fn f() → void {
return
}
main {
print "futura-braced"
}Expected output:
futura-braced
radix/corpus/futura/futura.fab (canonical · annotation)#
Compatibility annotation for asynchronous posture.
# =============================================================================
# futura — Compatibility annotation for asynchronous posture
# =============================================================================
#
# What this teaches:
# • Preferred async posture — write `fiet` for a finite async function.
# • Compatibility annotation — `@ futura` remains accepted and preserved as
# the legacy spelling for async posture.
# • Related keywords: cursor, figendum, tacebit
#
# Common mistakes:
# • Calling an async function and forgetting to consume the promissum with
# `figendum`, `variandum`, `reddet`, or `tacebit`.
#
# See also: cursor, figendum, tacebit
# =============================================================================
# @ futura — compatibility async function annotation
#
# @ futura
# functio nomen(…) → typus { … }
#
# GRAMMAR:
# annotatedFunc :← '@' 'futura' funcDecl
# callablePosture :← 'fiet'
#
# EXPECTED OUTPUT:
# none — Rust async runtime whitelist (compile-only in harness)
#
# BACKEND:
# Rust async runtime not linked in exempla harness (whitelist: futura/futura.fab).
@ future
fn responde() → int {
return 42
}
async_main {
# figendum awaits the promissum and binds the resolved value
await_const _ responsum ← responde()
print responsum
}Expected output:
42