language · keyword ·
false
Boolean false literal
Use literals for small values that are obvious at the point of use. Give repeated domain values a named field or function.
falseStatus: stable
Short circuit
Use literals for small values that are obvious at the point of use. Give repeated domain values a named field or function.
cpu · complete-program · type checked
list of int empty = []
bool andResult = false and empty[0] == 1
bool orResult = true or empty[0] == 1
if !andResult and orResult
{
Console.Log("short-circuit-ok")
}
else
{
Console.Log("short-circuit-bad")
}
project.mech
package = "tests.compiler.fastContract.shortCircuit"
Notes and source
Supported escapes include \\, \n, \r, \t, \0, escaped quotes, and Unicode \u{...}.
Interpolated text and hex, binary, or separator numeric literals are not admitted.
yeho/docs/language/language-core.md §2.6-2.9; lexer literal fixtures