§
Translation status: ภาษาไทย reader-locale proof. Code fences render through the th-TH pipeline; prose is canonical Latin.
String-template substitution holes inside quoted literals.
Syntax: \"<template>\"(<args>...)
Category#
format
Related#
Examples#
radix/corpus/operatores/metadata.fab (canonical · operator-group)#
String-template substitution holes inside quoted literals.
# =============================================================================
# § — String-template substitution holes inside quoted literals.
# =============================================================================
#
# What this teaches:
# • String interpolation — `§` marks substitution holes in string literals, filled by parenthesized arguments.
# • Template syntax — `"Salve, §!"(nomen)` replaces `§` with the value of `nomen`.
#
# Common mistakes:
# • Forgetting that arguments come after the string in parentheses, not inline with § inside the string.
#
# See also: textus, scribe
# =============================================================================
# operatores/metadata — § string templates
#
# GRAMMAR:
# stringTemplate :← stringLit '(' expr (',' expr)* ')'
#
# EXPECTED OUTPUT:
# Salve, Marcus!, 1 + 2 = 3
#
# BACKEND:
# Per-file metadata belongs in +++ frontmatter, not line-start § directives.
main {
const _ nomen ← "Marcus"
print "Salve, §!"(nomen)
print "§ + § = §"(1, 2, 3)
}Expected output:
Salve, Marcus!
1 + 2 = 3