Hetu Script Language
Guide
Grammar
  • Dart APIs
  • Hetu APIs
  • VS Code extension
Github
  • English
  • 简体中文
  • English
Guide
Grammar
  • Dart APIs
  • Hetu APIs
  • VS Code extension
Github
  • English
  • 简体中文
  • English
  • Introduction
  • Identifier & keywords
  • Builtin types
  • Operators
  • Variable
  • Control flow
  • Function
  • Enum
  • Class
  • Struct
  • Type system
  • Future, async & await
  • Import & export
  • Strict mode
  • Assert & error

Enum

Enum's syntax is the same to Dart.

enum Country {
  unitedStates,
  japan,
  iraq,
  ukraine,
}

However, to use a enum is not very convenient for now since code autocompletion is not implemented in the IDE tool yet.

This syntax exists mainly for external Dart values.

Last Updated: 2/17/22, 5:36 PM
Contributors: hythloday@live.com, 邵燃
Prev
Function
Next
Class