This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation
Standard Library

Standard Library

The Mew code that comes with the compiler, compiled once into Mew.Std.dll.

Namespace Description
std Printing, stopping, Option, Result, sequences and strings
std.build What the tasks of a build call
std.build.dotnet Running the .NET SDK from a build
std.build.engine What a build file is compiled into
std.cli Reading options from a program's arguments
std.collections Collections that grow
std.convert Turning text into numbers and back
std.io Files, directories, and the patterns that find them
std.process Running other programs
  • std is imported into every file. The others are imported with use, or written in front of the name, as std.convert.itoa(42).
  • Your own functions come first, so one named println hides the library's, which is still there as std.println.
  • You can add members to the library's types, but not make them implement an interface.
  • The library is ordinary Mew, and reaches the platform the way your own code does.

Important

This surface is expected to change, and to grow. What belongs in the language, in the library that ships with it, and in a package someone installs has not been settled, so treat this as what exists today rather than as a stable surface.

Mew is a programming language under construction.