# Comments, newlines, and semicolons

Line comments begin with //. Newlines normally separate statements, and semicolons are optional.

Last updated: 2026-09-09

Package: language | Status: stable

Tags: //, cpu, language, start, yeho

Prefer one readable statement per line. Add semicolons only when they make a compact expression easier to scan.

```yh
// comment
statement
statement;
```


## Readable statements

Prefer one readable statement per line. Add semicolons only when they make a compact expression easier to scan.

Verification: type checked

```yh
// Explain why, not what the next token says.
int lives = 3
text hero = "Nova";
Console.Log(hero)

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.language__comments_separators"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/language--comments-separators/complete-0 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Blocks use braces.

Whitespace is not an ownership or control-flow signal.

Source: yeho/docs/language/language-core.md §2.5; lexer and parser separator fixtures

AI training permission: https://demonhunterlabs.com/ai-use
