You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the use of shadow variables is suboptimal. Consider this example:
function f(int x) -> (int r):
return x + 1
which generates the following JavaScript:
function f_I(/*int*/ x)// -> (/*int*/ r)
{
// create shadow variables
var $x = x;
// function or method body
var r = x + 1;
// restore shadow variables
x = $x;
return r;
}
Here, we don't really need the $x shadow at all.
The text was updated successfully, but these errors were encountered:
Currently, the use of shadow variables is suboptimal. Consider this example:
which generates the following JavaScript:
Here, we don't really need the
$x
shadow at all.The text was updated successfully, but these errors were encountered: