Skip to content

function arguments pass by name #35724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 5 tasks
tangjfn opened this issue Dec 17, 2019 · 3 comments
Closed
1 of 5 tasks

function arguments pass by name #35724

tangjfn opened this issue Dec 17, 2019 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@tangjfn
Copy link

tangjfn commented Dec 17, 2019

Search Terms

Suggestion

Use Cases

function test(a: string, b: number):void {
}

test(b:100,a:"100"); // js: test("100", 100)

Examples

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.
@dragomirtitian
Copy link
Contributor

This proposal does not statify this guideline:

This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)

@MartinJohns
Copy link
Contributor

Duplicate of #467.

@ahejlsberg ahejlsberg added Duplicate An existing issue was already created Out of Scope This idea sits outside of the TypeScript language design constraints labels Dec 17, 2019
@RyanCavanaugh RyanCavanaugh removed the Out of Scope This idea sits outside of the TypeScript language design constraints label Dec 17, 2019
@RyanCavanaugh
Copy link
Member

To expedite the triage process, we need everyone to follow the issue template and instructions.

When you clicked "Create New Issue", the issue form was pre-populated with a template and some instructions. We need you to read those instructions completely, follow them, and then fill in all the fields in that template.

We are not able to assist with issues that don't follow the template instructions as they represent a significantly larger amount of work compared to issues which are correctly specified. Thank you for understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

5 participants