LambdaS5 icon indicating copy to clipboard operation
LambdaS5 copied to clipboard

fvl_to_letchain sucks

Open jpolitz opened this issue 12 years ago • 0 comments

js_to_exprjs currently uses specially-named identifiers to transform surface JS into an intermediate form (ExprJS). The transformation looks like:

function f(x) {
  var y = 5;
}

f = func(this, args) {
  let %%x = undefined
  let %%y = undefined
  %%y = 5
}}

Then the next step looks for %% variables and turns them into context objects. We should have a special let form that binds JS-ids specifically, and not use the %%-hack.

jpolitz avatar Jan 21 '13 15:01 jpolitz