Skip to content

0.0.2

Choose a tag to compare

@dk00 dk00 released this 12 Feb 00:36
· 46 commits to master since this release

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

  • new operator new A new A b, c
  • Object/Array slicing & substructuring a{b, c} a[b, c]
  • Binding property access a~b is 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.