You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A site for a language showed four of its six programs in plain
JavaScript, and the quick start opened on a .js file. The language is
the point, so the examples lead with it now.
server, fetch, files and ffi move from .mjs to .sx, with the
annotations that earn their place. Nothing needed an .mjs extension for
its own sake -- .sx is always a module, so top-level await works
without one. Every one of them was run before it was written down, and
CMake now runs the four offline ones as tests: the docs inline these
files verbatim, so an example that stops working is a broken code block
published to the web.
The quick start is reordered to match: .sx first, then ownership, then
a server, and JavaScript and TypeScript at the end where they belong --
as the compatibility story rather than the headline. The two places
that stay JavaScript are the ones demonstrating exactly that: the
plain-JS section here, and LANGUAGE.md's example of what the
compatibility transformer lowers `unsafe extern` to.
GitHub's renderer has no .sx highlighter and returns an ```sx fence as
flat text, so build-docs.py relabels the fence as TypeScript on the way
in and re-tags mut/safe/unsafe as keywords on the way out. The markdown
keeps saying sx.
The landing page now names the file it is quoting instead of carrying a
copy, the way the examples page already did, and its hero snippets go
through the same renderer. Both were hand-maintained HTML that could
drift from the programs they claimed to show, and neither was
highlighted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments