Skip to content

lukescott/es-named-arguments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

ECMAScript Named Arguments

This proposal introduces named arguments.

Works well with es-type-hinting.

Examples

Long form:

function move(xPos: x Number, yPos: y Number) {
  console.log("x:", x, "y:", y);
}
move(xPos: 5, yPos: 10);

Shorthand form:

function move(x: Number, y: Number) {
  console.log("x:", x, "y:", y);
}
move(x: 5, y: 10);

Syntax

TODO

About

Named arguments for ECMAScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published