OxL Reference

Language

Language reference after the Standard: a page for every construct

Quick links. Keywords, attributes, operators, grammar, rules of good code. The normative text follows by chapters.

In this chapter

IntroductionThis document is the standard of the Oxwald Link (OxL) language, edition 2027, version 1.0.
§1. Lexical structureLexical structure
§2. Program structureProgram structure
§3. TypesOxL is statically typed.
§4. DeclarationsDeclarations
§5. ExpressionsExpressions
§6. Functions, effects, errorsFunctions, effects, errors
§7. Memory and ownershipMemory and ownership
§8. Concurrency and asynchronous chainsConcurrency and asynchronous chains
§9. SerialisationSerialisation
§10. Services, streams and pipelinesServices, streams and pipelines
§11. Transactions and sagasTransactions and sagas
§12. ClusterCluster
§13. SecuritySecurity
§14. ConfigurationConfiguration
§15. Reflection, comptime, attributes, observabilityReflection, comptime, attributes, observability
§16. FFI and interoperabilityFFI and interoperability
§17. TimeTime
§18. TestsTests
KeywordsEvery reserved and contextual word of the language
AttributesBuilt-in attributes
Operators and separatorsOperators and separators of §1.6; precedence and associativity
Rules of good code (part IV)In this chapter IV.1 No "magic" values Timeouts, retries, sizes, limits, TTLs and thresholds are set once by a named constant or a config field and reused.
App. AThe grammar describes the syntax after lexical analysis (§1).
App. BWhen the draft was turned into the standard, contradictions were found and eliminated.
App. DThe list of all items of the Standard in which the behaviour is defined by the implementation or a feature is optional (§0.1).
Considerations for future revisionsThe items below are not part of the current edition and are not mandatory for implementations; this is material for discussion in the next revisions of the Standard.
Open questionsThere are no open questions.