language · keyword ·

assert

Unavailable statement; use an explicit check and error

boundariescpukeywordlanguageyeho

Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.

assert

Status: unavailable

Complete program

A complete example you can paste into start.yh.

cpu · language · type checked

// assert is not admitted; validate explicitly.
int score = 10
if score < 0 { Console.Error("Score must be nonnegative") }
else { Console.Log(Text.From(score)) }
project.mech
manifestVersion = "2"
package = "api.example.word__assert"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Notes and source

panic, assert, fatal, exception subclasses, and finally are not admitted error syntax.

Dedicated event, emit, and watch syntax is deferred in favor of ordinary values, functions, tasks, and tunnels.

yeho/parser_core.cpp and parser_statements.cpp rejection diagnostics; language-core.md §13.4