Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/frontend/src
diff options
context:
space:
mode:
authorLeitwolf112026-08-10 01:02:02 +0300
committerLeitwolf112026-08-10 01:02:02 +0300
commitaeecf6ecc1f1a239f8c32279d5d87cff9e4a10ed (patch)
treeb86b9130204eed6ae9ab54c570fa609527e3219f /frontend/src
parentc802ae5b87c9ca49d483b82b93df03d72677a468 (diff)
downloadwebsite-aeecf6ecc1f1a239f8c32279d5d87cff9e4a10ed.tar.gz
Correct the homepage Visual X# sample from obsolete fn-arrow syntax to the renewed declaration grammar verified in Decls: use explicit leading return types, typed positional parameters, final-expression returns, and auto inference; also remove the retired IR name entirely from public Java documentation so the catalog discusses only the canonical Xmm writer, Xmm reader, and C FFI packages.
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/pages/index.astro13
1 files changed, 8 insertions, 5 deletions
diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro
index 9d64ff4..aa12b48 100644
--- a/frontend/src/pages/index.astro
+++ b/frontend/src/pages/index.astro
@@ -198,13 +198,16 @@ const capabilities = [
<p>Sources/main.vxs</p>
<span class="window-badge">Visual X#</span>
</div>
- <pre><code>{`fn add(a: Long, b: Long) -> Long {
- a + b
+ <pre><code>{`int Sum(_ int left, _ int right) {
+ left + right
}
-fn main() -> Long {
- answer := add(20, 22);
- answer
+auto Factorial(_ int value) {
+ if (value <= 1) {
+ return 1;
+ }
+
+ value * Factorial(value - 1)
}`}</code></pre>
<div class="code-shine" aria-hidden="true"></div>
</div>