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
{{ message }}
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
Need to do something similar to #114 only for let bindings.
For example:
module Example exports (..);
type T = T(Int);
some_expensive_function = fn (i) -> T(i);
fixme =
let
T(i) = some_expensive_function(5000);
in
i;
Generates:
functionT($0){return["T",$0];}functionsome_expensive_function(i){returnT(i);}constfixme=(()=>{if(some_expensive_function(5000)[0]==="T"){consti=some_expensive_function(5000)[1];// ISSUE: some_expensive_function called again!returni;}thrownewError("Pattern match error");})();export{fixme,some_expensive_function,T};
The text was updated successfully, but these errors were encountered:
Need to do something similar to #114 only for
let
bindings.For example:
Generates:
The text was updated successfully, but these errors were encountered: