Docs/standard library
STANDARD LIBRARY

Small core. Real output.

The CHUD.Core functionality available in this milestone.

Use CHUD.Core.

CHUD
chud CHUD.App;
use CHUD.Core;

The alpha accepts module headers and the CHUD.Core import. User-module namespaces and other imports are not implemented; functions share one project-wide namespace.

Write to the console.

APIBehavior
CHUD.Print(value)Writes to standard output and adds a newline.
CHUD.Warn(value)Writes to standard error and adds a newline.
CHUD.Error(value)Writes to standard error and adds a newline.
CHUD
CHUD.Print("Hello from CHUD!");
CHUD.Print(42);
CHUD.Print(true);
CHUD.Warn("Check this value.");
CHUD.Error("Something needs attention.");

Each call accepts exactly one int, bool, or string. CHUD.Error prints a message; it does not itself terminate the program.

What comes later.

IO, Text, Math, Collections, Net, Async, Memory, Debug, Time, and Platform are planned modules. There are no placeholder APIs that silently pretend to implement them.

Covers the implemented 0.1.0-alpha subset · Windows x64

Search language syntax, setup, Studio, and more.

CHUD DOCUMENTATION↑ ↓ to navigate · Enter to open