i wonder if it is worthwhile, to create a new lang on top of #JavaScript, by writing a set of function wrappers that cover every (good) parts of js. And you code js using this wrapper layer.
you get minimal speed penalty, and is still pure js.
@progo was thinking rewriting everything in js with a functional wrapper. So, almost everything will just have the function form f().
and no for loop, no statement, no dot notation perhaps (have fcompose() instead), and if() now returns a value, etc.
@xahlee if you keep the syntax the same, that's a library, not a language.
Or do you mean some kind of C macro processor for JS?