Reference

Enums

Enums define a fixed set of named tags with implicit ordinal values. Declaration enum Color { Red, Green, Blue, } Access Color.Red Notes Enum tags are ordinal-only and currently start at 0. Enums are intended for compact, named state modeling in the language spec.

Source repo
aoiflux/mutant
Source path
evaluator/evaluator.go
Last reviewed
2026-07-03
Freshness tier
high

Enums define a fixed set of named tags with implicit ordinal values.

Declaration

enum Color {
  Red,
  Green,
  Blue,
}

Access

Color.Red

Notes

  • Enum tags are ordinal-only and currently start at 0.
  • Enums are intended for compact, named state modeling in the language spec.