René's URL Explorer Experiment


Title: Proposal : rest instance variables · Issue #6502 · microsoft/TypeScript · GitHub

Open Graph Title: Proposal : rest instance variables · Issue #6502 · microsoft/TypeScript

X Title: Proposal : rest instance variables · Issue #6502 · microsoft/TypeScript

Description: In order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods). Imagine the following syntax : class OtherClass { dummy1 : string; dummy2 : number; dummy...

Open Graph Description: In order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods). Imagine the following syntax : class OtherClass {...

X Description: In order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods). Imagine the following syntax : class OtherClass {...

Mail addresses
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com

Opengraph URL: https://github.com/microsoft/TypeScript/issues/6502

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proposal : rest instance variables","articleBody":"In order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods).\n\nImagine the following syntax :\n\n```\n     class OtherClass {\n           dummy1 : string;\n           dummy2 : number;\n           dummy() {\n            }\n     }\n     class MyGenericClass \u003caClass> {\n           ...: aClass;\n     }\n     class MyTerminalClass extends MyGenericClass\u003cOtherClass> {\n            aMethod() {\n                  let toto = this.dummy1;\n                  let titi = this.dummy2;\n                  this.dummy();\n            }\n     }\n```\n\nThis could be a nice way to define and use mixins...\n\nWe may also combine mixins like this :\n\n```\n      ... : OtherClass & OtherOtherClass ;\n```\n","author":{"url":"https://github.com/xmehaut","@type":"Person","name":"xmehaut"},"datePublished":"2016-01-15T15:05:16Z","url":"https://github.com/microsoft/TypeScript/issues/6502"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cc4b14d6-1f38-e356-4fd7-8fa1fac116ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB04A:33F146:6E862A:90505A:6B00D42D
html-safe-noncee04329d030e4ed64311fda9bdd9a5da2813e38aa65ce360761e0a59d9708f0a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDRBOjMzRjE0Njo2RTg2MkE6OTA1MDVBOjZCMDBENDJEIiwidmlzaXRvcl9pZCI6IjczNzk0MTU1MDMyNzk4MDU0ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb58d31c2cd65687f0d659ab45540a3a7852d8e0eedf7989b3bb1d85173cea4c0
hovercard-subject-tagissue:126890226
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/6502/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cf6fc6e7164b7d73476e9594dff678395bb292466674a4c6d035d6b97544ecce/microsoft/TypeScript/issues/6502
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf6fc6e7164b7d73476e9594dff678395bb292466674a4c6d035d6b97544ecce/microsoft/TypeScript/issues/6502
og:image:altIn order to implement in a simple manner mixins, it could be interesting to provide a kind of rest mechanism for instances variables (and methods). Imagine the following syntax : class OtherClass {...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamexmehaut
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/6502#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F6502
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F6502
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/6502
Reloadhttps://github.com/microsoft/TypeScript/issues/6502
Reloadhttps://github.com/microsoft/TypeScript/issues/6502
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/6502
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/6502
Proposal : rest instance variableshttps://github.com/microsoft/TypeScript/issues/6502#top
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 15, 2016https://github.com/microsoft/TypeScript/issues/6502#issue-126890226
Nexthttps://github.com/microsoft/TypeScript/issues/6502?timeline_page=1
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 16, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172133058
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 16, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172150132
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 16, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172150867
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jan 18, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172687444
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172743997
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172747703
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172808008
xmehauthttps://github.com/xmehaut
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172956802
#2919https://github.com/microsoft/TypeScript/issues/2919
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172959887
#2919https://github.com/microsoft/TypeScript/issues/2919
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172960946
#2919https://github.com/microsoft/TypeScript/issues/2919
#311https://github.com/microsoft/TypeScript/issues/311
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 19, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172971204
#2919https://github.com/microsoft/TypeScript/issues/2919
#2919https://github.com/microsoft/TypeScript/issues/2919
#311https://github.com/microsoft/TypeScript/issues/311
#311https://github.com/microsoft/TypeScript/issues/311
#6502 (comment)https://github.com/microsoft/TypeScript/issues/6502#issuecomment-172960946
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#event-519800529
https://github.com/Izhaki
Izhakihttps://github.com/Izhaki
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173043630
jods (@jods4)https://github.com/jods4
http://www.typescriptlang.org/Playgroundhttp://www.typescriptlang.org/Playground
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173167224
Izhakihttps://github.com/Izhaki
Playgroundhttp://www.typescriptlang.org/Playground#src=function%20Mixin%3CT%3E%28...mixins%29%20%3A%20new%28%29%20%3D%3E%20T%20%7B%0A%09class%20X%20%7B%7D%0A%09Object.assign%28X.prototype%2C%20...mixins.map%28m%20%3D%3E%20m.prototype%29%29%3B%0A%09return%20%3Cany%3EX%3B%0A%7D%0A%0Aabstract%20class%20Dog%20%7B%0A%09bark%28%29%20%7B%20console.log%28'bark!'%29%3B%20%7D%0A%7D%0A%0Aabstract%20class%20Duck%20%7B%0A%09quack%28%29%20%7B%20console.log%28'quack!'%29%3B%20%7D%0A%7D%0A%0Ainterface%20DoggyDuck%20extends%20Dog%2C%20Duck%20%7B%20%7D%0A%0Aclass%20Mutant%20extends%20Mixin%3CDoggyDuck%3E%28Dog%2C%20Duck%29%20%7B%0A%09%0A%7D%0A%0Alet%20xavier%20%3D%20new%20Mutant%28%29%3B%0Axavier.bark%28%29%3B%0Axavier.quack%28%29%3B
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173239657
jods (@jods4)https://github.com/jods4
https://github.com/jods4https://github.com/jods4
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazyhttps://github.com/mhegazy
#6502 (comment)https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173237101
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173260161
Izhakihttps://github.com/Izhaki
https://github.com/Izhaki
Izhakihttps://github.com/Izhaki
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173263590
jods (@jods4)https://github.com/jods4
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173312747
Izhakihttps://github.com/Izhaki
Playgroundhttp://www.typescriptlang.org/Playground#src=function%20Mixin%3CT%3E%28...mixins%29%20%3A%20new%28%29%20%3D%3E%20T%20%7B%0A%09class%20X%20%7B%0A%09%09constructor%28%29%20%7B%0A%09%09%09mixins%5B0%5D.call%28this%29%3B%0A%09%09%7D%0A%09%7D%0A%09Object.assign%28X.prototype%2C%20...mixins.map%28m%20%3D%3E%20m.prototype%29%29%3B%0A%09return%20%3Cany%3EX%3B%0A%7D%0A%0Aabstract%20class%20Dog%20%7B%0A%09bark%28%29%20%7B%20console.log%28'bark!'%29%3B%20%7D%0A%7D%0A%0Aabstract%20class%20Duck%20%7B%0A%09quack%28%29%20%7B%20console.log%28'quack!'%29%3B%20%7D%0A%7D%0A%0Aclass%20Base%20%7B%0A%09constructor%28%29%20%7B%0A%09%09console.log%28'base%20ctor'%29%3B%0A%09%7D%0A%09%0A%09world%20%3D%20%22world%22%3B%0A%09%0A%09hello%28%29%20%7B%0A%09%09console.log%28%60hello%20%24%7Bthis.world%7D%60%29%3B%0A%09%7D%0A%7D%0A%0Ainterface%20DoggyDuck%20extends%20Base%2C%20Dog%2C%20Duck%20%7B%20%7D%0A%0Aclass%20Mutant%20extends%20Mixin%3CDoggyDuck%3E%28Base%2C%20Dog%2C%20Duck%29%20%7B%0A%09%0A%7D%0A%0Alet%20xavier%20%3D%20new%20Mutant%28%29%3B%0Axavier.bark%28%29%3B%0Axavier.quack%28%29%3B%0Axavier.hello%28%29%3B
https://github.com/Izhaki
Izhakihttps://github.com/Izhaki
on Jan 20, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173383720
jods (@jods4)https://github.com/jods4
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jan 21, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173427387
https://github.com/xmehaut
xmehauthttps://github.com/xmehaut
on Jan 21, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173441097
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jan 23, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-174156886
#3870https://github.com/microsoft/TypeScript/issues/3870
#3870https://github.com/microsoft/TypeScript/issues/3870
https://github.com/iBasit
Basit (iBasit)https://github.com/iBasit
on Feb 14, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-183816136
https://github.com/silkentrance
Carsten Klein (silkentrance)https://github.com/silkentrance
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-192400435
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-192414587
Carsten Klein (@silkentrance)https://github.com/silkentrance
https://github.com/silkentrance
Carsten Klein (silkentrance)https://github.com/silkentrance
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/6502#issuecomment-192437295
Kitson Kelly (@kitsonk)https://github.com/kitsonk
#2900https://github.com/microsoft/TypeScript/issues/2900
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Jan 30, 2017https://github.com/microsoft/TypeScript/issues/6502#issuecomment-276218890
#13743https://github.com/microsoft/TypeScript/pull/13743
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 30, 2017https://github.com/microsoft/TypeScript/issues/6502#event-942224906
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/6502#event-1689633181
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/6502
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/6502
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.