<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Specification on Xo Language</title><link>https://xolang.dev/docs/spec/</link><description>Recent content in Specification on Xo Language</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://xolang.dev/docs/spec/index.xml" rel="self" type="application/rss+xml"/><item><title>Xo Language Specification (Core)</title><link>https://xolang.dev/docs/spec/core/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://xolang.dev/docs/spec/core/</guid><description>&lt;h1 id="xo-language-specification-core"&gt;Xo Language Specification (Core)&lt;/h1&gt;&#10;&lt;p&gt;Status: draft 0.10 (2026-10-10; 0.9 released as toolchain v0.9.0, decision 0089)&#10;Edition: 2026&#10;Companion: &lt;code&gt;spec/std.md&lt;/code&gt; (prelude methods and standard library surface)&lt;/p&gt;&#10;&lt;p&gt;Xo is a small, statically typed, garbage collected language for backends and&#10;web services. It keeps what makes Go productive (few keywords, one obvious way,&#10;fast builds, static binaries, a strong standard library, a compatibility&#10;promise) and is designed so that an AI agent can write, check, build, and debug&#10;programs for any OS with fast, structured, unambiguous feedback.&lt;/p&gt;</description></item><item><title>Xo Standard Library</title><link>https://xolang.dev/docs/spec/std/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://xolang.dev/docs/spec/std/</guid><description>&lt;h1 id="xo-standard-library-and-prelude"&gt;Xo Standard Library and Prelude&lt;/h1&gt;&#10;&lt;p&gt;Status: draft 0.8 (2026-10-09; the same draft number as &lt;code&gt;spec/core.md&lt;/code&gt;, decision 0089)&#10;Companion to &lt;code&gt;spec/core.md&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Signatures are written in Xo syntax. &lt;code&gt;[var]&lt;/code&gt; before a receiver means the method&#10;mutates and needs a &lt;code&gt;var&lt;/code&gt; binding (core 3.4). Effects are listed with &lt;code&gt;uses&lt;/code&gt;.&#10;Everything here is part of the 2026 edition compatibility promise once the&#10;edition is released.&lt;/p&gt;&#10;&lt;h2 id="0-conventions"&gt;0. Conventions&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Capabilities and fakes are handles.&lt;/strong&gt; Copying a &lt;code&gt;Net&lt;/code&gt;, &lt;code&gt;Fs&lt;/code&gt;, &lt;code&gt;Clock&lt;/code&gt;, &amp;hellip;&#10;or a test fake shares the same underlying resource. They can be captured in&#10;closures and stored in structs.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Every error type implements &lt;code&gt;Display&lt;/code&gt;.&lt;/strong&gt; So any std error converts to&#10;&lt;code&gt;Error&lt;/code&gt; at a &lt;code&gt;?&lt;/code&gt; site.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Every error type returned by a blocking operation has a &lt;code&gt;Canceled&lt;/code&gt;&#10;variant&lt;/strong&gt; (core 7.2).&lt;/li&gt;&#10;&lt;li&gt;Functions that cannot fail have no &lt;code&gt;!&lt;/code&gt;. Lookups that may miss return &lt;code&gt;T?&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Braces are literal in plain strings (interpolation is &lt;code&gt;${x}&lt;/code&gt;), so route&#10;patterns are ordinary strings: &lt;code&gt;&amp;quot;GET /users/{id}&amp;quot;&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Fields of std structs are &lt;code&gt;pub&lt;/code&gt;: they can be read and the structs can be&#10;constructed (useful for testing pure functions).&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="1-prelude-interfaces"&gt;1. Prelude interfaces&lt;/h2&gt;&#10;&lt;p&gt;Available everywhere without &lt;code&gt;use&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>