Skip to content
Snippets Groups Projects

JsLIGO Remove Parser Requirement for Mandatory Parameter Annotations

Merged Alistair O'Brien requested to merge ajob410/jsligo-function-annot-improvements into dev

type:changed

Related to #1456 (closed) and #1452. Removes parser requirement that JsLIGO function parameters have a mandatory annotation.

For example, we can now write functions without annotations (allowing complete type inference)

let for_of_single_statement = xs => {
    let ys = list([]);
    for (const x of xs) {
        ys = list([x, ...ys]);
    };
    return ys;
}

Changelog details: Remove requirement that JsLIGO function parameters must be annotated

Edited by Alistair O'Brien

Merge request reports

Merge train pipeline #637964428 passed with warnings

Merge train pipeline passed with warnings for 6c3f36e1

Merged by Alistair O'BrienAlistair O'Brien 2 years ago (Sep 12, 2022 5:51pm UTC)

Loading

Pipeline #637970351 failed

Pipeline failed for 3dfa0e90 on dev

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading