import std::io; def say(text: span, value: bool): bool { print(text); return value; } def main(): void { if say("a", false) && say("b", true) { print("!"); } if say("c", true) || say("d", true) { print("?"); } val both := say("e", true) && say("f", true); println($" {both} {true ? 1 : 2} {false ? 1.5 : 2}"); }