Make syntax more javascript like


can syntax be made more javascript like
var y = function(x) { return x + 1; }
instead of
var y = fun(x) { return x+1; }

dont want to embed whole v8
for small simple scripts that i plan to share between c++ and js code


If anything the syntax is moving more in the direction of C++ and less in the direction of javascript. There are things that will never work like you want - such as automatic closures over local variables.


If you’re looking for actual JavaScript, you might want to check out DuckTape and .