language · language ·
Variables and assignment
Types come before names. Declare with an initial value, then use = to replace the value.
Use a narrow explicit type when the value is part of the program's meaning or machine contract.
Type name = expression
name = expressionStatus: stable
Declare and update
Use a narrow explicit type when the value is part of the program's meaning or machine contract.
cpu · language · type checked
int score = 10
score = score + 5
text message = "Score: " + Text.From(score)
Console.Log(message)
project.mech
manifestVersion = "2"
package = "api.example.language__variables_assignment"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
Implicit untyped declarations are not admitted.
Compound assignment such as += is unavailable. Spell the complete assignment.
yeho/docs/language/language-core.md §3.6; tests/compiler/kyber/scalar-runtime/start.yh