{"id":17963954,"url":"https://github.com/devsnek/proposal-unused-function-parameters","last_synced_at":"2025-04-03T19:28:00.440Z","repository":{"id":103443208,"uuid":"286901478","full_name":"devsnek/proposal-unused-function-parameters","owner":"devsnek","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-12T03:08:11.000Z","size":21,"stargazers_count":14,"open_issues_count":4,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-09T07:36:05.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devsnek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-12T02:56:25.000Z","updated_at":"2024-02-24T21:12:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e67e961a-2990-42b9-aebf-8d52f997b21c","html_url":"https://github.com/devsnek/proposal-unused-function-parameters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"tc39/template-for-proposals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsnek%2Fproposal-unused-function-parameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsnek%2Fproposal-unused-function-parameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsnek%2Fproposal-unused-function-parameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsnek%2Fproposal-unused-function-parameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsnek","download_url":"https://codeload.github.com/devsnek/proposal-unused-function-parameters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247064436,"owners_count":20877598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T11:45:58.283Z","updated_at":"2025-04-03T19:28:00.419Z","avatar_url":"https://github.com/devsnek.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unused Function Parameters\n\n## The Problem\n\n```js\ndoSomething((unused1, unused2, somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n\ndoSomething((_, __, somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n```\n\n## Solutions\n\n### Elisions\n\n```js\ndoSomething(( , , somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n```\n\n- Matches with existing destructuring\n  - `([, c])` is already valid\n- Some might say it looks weird\n\n### Placeholder Syntax\n\n```js\ndoSomething((?, ?, somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n\ndoSomething((*, *, somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n\n// etc.\n```\n\n- Most explicit, clearly \"using up\" a parameter without binding it\n- Requires more syntax\n\n### Placeholder Identifier\n\n```js\ndoSomething((_, _, somethingUseful) =\u003e {\n  doSomethingWith(somethingUseful);\n});\n\ndoSomething((_, _, somethingUseful) =\u003e {\n  print(_); // IdentifierReference : `_` early error?\n  doSomethingWith(somethingUseful);\n});\n```\n\n- Arguably most natural, other languages use this (C#, Rust, etc.)\n- Any valid identifiers are already valid identifiers, could conflict with existing code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsnek%2Fproposal-unused-function-parameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsnek%2Fproposal-unused-function-parameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsnek%2Fproposal-unused-function-parameters/lists"}