Add a "never" value to the language #738
Labels
✨ enhancement
New feature or request
💡 language
Language design
#️⃣ syntax
Concerns the syntax committee
It's useful to have a "never" value in the language :
assert false
marker for pattern matching cases which you know should not happen ;Hence, I propose the addition to the language of a "never" value that has the syntactic kind of an expression. It should be polymorphic in type to placehold anything. At execution type, it should behave like an assertion failure.
Concerning the syntax, I propose :
impossible
(for French and English). But we should discuss this on the next syntax committee :)The text was updated successfully, but these errors were encountered: