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
Language

Primitives

Fifteen types are built into the language rather than declared in it. They cover numbers, text and truth values, the absence of a value, any, which holds a value of any type, and void, which holds nothing at all.

Their names are not keywords, so a local or a field may take one, though a type declaration may not.

  • Null: the absence of a value, and which types accept one.
  • Numbers: signed and unsigned integers, floating point, suffixes and coercion.
  • Text: strings and characters.
  • Any: a value of any type, with nothing reachable through it.
  • Booleans: true and false, and the operators over them.
  • Void: what a function returns when it returns nothing.
Mew is a programming language under construction.