{"id":"word--choice","name":"choice","owner":"yeho","package":"language","kind":"keyword","signature":"choice","description":"Removed spelling; use enum","context":"Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.","parameters":[],"returns":"","members":[],"tags":["boundaries","keyword","language","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"parser_core.cpp and parser_statements.cpp rejection diagnostics; language-core.md §13.4"},"status":"unavailable","notes":["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."],"examples":[{"id":"usage","title":"Use enum instead of choice","description":"Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.","code":"// choice is not admitted.\nenum Direction { North, South }","manifest":"manifestVersion = \"2\"\npackage = \"api.example.word_choice\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["language"],"verification":"type checked","run":"cpu-oracle","sha256":"73330379cf7837c511520db9b8ec5a922290336e7c132c0ff0a1ee6b5df14abf","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--choice","json":"https://demonhunterlabs.com/reference/items/word--choice.json","markdown":"https://demonhunterlabs.com/reference/text/word--choice.md"}
