fn void print(String s)
{
io::printfn("Said: %s", s);
}
macro @foo(bool run, #lazy)
{
if (run) #lazy;
}
// Only "Said: Hello" is printed:
@foo(false, print("Bye"));
@foo(true, print("Hello"));
Languages with Lazy Evaluation include R, C3, popr
View all concepts with or missing a hasLazyEvaluation measurement
Read more about Lazy Evaluation on the web: 1.