Closed giann closed 7 months ago
A simple form of compile time execution:
if/else
foreach
for
while
return
A simple form of compile time execution:
if/else
: when conditions are constants, gen only valid branchforeach
: when iterable is constant and empty, don't generate loopfor
,while
: when condition is constant and false, don't generate loopreturn
: don't generate code for nodes after areturn