0.0.2
Async and Await
Calls to await are converted to await expressions, also implicitly make the containing function async.
-> await something
function named
await func args(async function () {
return await something;
});
async function named() {
return await func(args);
}Conversion of Existing Features
newoperatornew Anew A b, c- Object/Array slicing & substructuring
a{b, c}a[b, c] - Binding property access
a~bis converted to bind operator::a.b - Partial application to operators
(a +)(+ a) - Allow suppressing automatic returning
!->!function
Improvements
- Conversion of cascade is moved to LS node transform, and no more uses additional cache variables for nested cascade
- Conversion of switch statements are also moved to LS node transform, added source locations, should result better source maps and coverage support.