René's URL Explorer Experiment


Title: TypeScript should have "Records" like C#7 · Issue #10910 · microsoft/TypeScript · GitHub

Open Graph Title: TypeScript should have "Records" like C#7 · Issue #10910 · microsoft/TypeScript

X Title: TypeScript should have "Records" like C#7 · Issue #10910 · microsoft/TypeScript

Description: Proposal Typescript should be able to generate immutable objects with accessor properties and value semantics, similar to the "records" proposal for C# 7.0 Rationale Currently I have to write a lot of boilerplate code to create an object...

Open Graph Description: Proposal Typescript should be able to generate immutable objects with accessor properties and value semantics, similar to the "records" proposal for C# 7.0 Rationale Currently I have to write a lot...

X Description: Proposal Typescript should be able to generate immutable objects with accessor properties and value semantics, similar to the "records" proposal for C# 7.0 Rationale Currently I have to w...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript should have \"Records\" like C#7","articleBody":"# Proposal\n\nTypescript should be able to generate immutable objects with accessor properties and value semantics, similar to the \"records\" proposal for C# 7.0\n# Rationale\n\nCurrently I have to write a lot of boilerplate code to create an object with accessor properties and value semantics. I think this can easily be streamlined by the TypeScript compiler.\n# Example of what I have to write currently\n\n```\nclass Person {\n    private _firstName: string;\n    private _lastName: string;\n\n    constructor(firstName: string = null, lastName: string = null) {\n        this._firstName = firstName;\n        this._lastName = lastName;\n    }\n\n    public get firstName(): string {\n        return this._firstName;\n    }\n\n    public get lastName(): string {\n        return this._lastName;\n    }\n\n    public equals(other: Person): boolean {\n        return other !== void 0\n            && other !== null\n            && this._firstName === other._firstName\n            && this._lastName === other._lastName;\n    }\n}\n```\n# What I would like to write in future\n\n```\nclass Person {\n    constructor(\n        public get firstName: string = null,\n        public get lastName: string = null) {       \n    }\n}\n```\n\nNote the use of **get** in the constructor\n\nEither of the examples above **should** produce this (the top example **did** produce this)\n\n```\nvar Person = (function () {\n    function Person(firstName, lastName) {\n        if (firstName === void 0) { firstName = null; }\n        if (lastName === void 0) { lastName = null; }\n        this._firstName = firstName;\n        this._lastName = lastName;\n    }\n    Object.defineProperty(Person.prototype, \"firstName\", {\n        get: function () {\n            return this._firstName;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Person.prototype, \"lastName\", {\n        get: function () {\n            return this._lastName;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Person.prototype.equals = function (other) {\n        return other !== void 0\n            && other !== null\n            && this._firstName === other._firstName\n            && this._lastName === other._lastName;\n    };\n    return Person;\n}());\n\n```\n","author":{"url":"https://github.com/MrMatthewLayton","@type":"Person","name":"MrMatthewLayton"},"datePublished":"2016-09-14T10:45:12Z","url":"https://github.com/microsoft/TypeScript/issues/10910"}

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:d49f0471-85ad-c143-1426-692765802003
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id82BC:E2D7:75D979:A0E6B8:6AFBC902
html-safe-nonce1c5e2fe076eae1538199bc7da5ecb7d9cd28447f1c1b3608d207e8e27c1ed041
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkJDOkUyRDc6NzVEOTc5OkEwRTZCODo2QUZCQzkwMiIsInZpc2l0b3JfaWQiOiIyNDExMDg3MjA3NDU3MzQzNzQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb6aec5d6a134b5664fddbf63cc63e5a0154ae238446bb7ac28ffe48709d801e2
hovercard-subject-tagissue:176874543
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/10910/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9651c13d9c32b2c0d150433bc21610bc241fbec58eb7c76ff5b7fdd84f67c36f/microsoft/TypeScript/issues/10910
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9651c13d9c32b2c0d150433bc21610bc241fbec58eb7c76ff5b7fdd84f67c36f/microsoft/TypeScript/issues/10910
og:image:altProposal Typescript should be able to generate immutable objects with accessor properties and value semantics, similar to the "records" proposal for C# 7.0 Rationale Currently I have to write a lot...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMrMatthewLayton
hostnamegithub.com
expected-hostnamegithub.com
Noned440bda0d812801778b27bfe9f7c1ce9ff22420c73f6f95150c4fcbca311c50b
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
release2c43021aed8695990c86c0eaaedc600bfeffec36
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/10910#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F10910
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%2F10910
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/10910
Reloadhttps://github.com/microsoft/TypeScript/issues/10910
Reloadhttps://github.com/microsoft/TypeScript/issues/10910
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests334 (334)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/pulse
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10910
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10910
TypeScript should have "Records" like C#7https://github.com/microsoft/TypeScript/issues/10910#top
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/MrMatthewLayton
Matthew Layton (MrMatthewLayton)https://github.com/MrMatthewLayton
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issue-176874543
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-246999126
https://github.com/MrMatthewLayton
Matthew Layton (MrMatthewLayton)https://github.com/MrMatthewLayton
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247037352
Troy Gerwien (@yortus)https://github.com/yortus
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247041551
#6532https://github.com/microsoft/TypeScript/pull/6532
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247076382
Troy Gerwien (@yortus)https://github.com/yortus
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#event-789444038
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 14, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247076736
https://github.com/danielearwicker
Daniel Earwicker (danielearwicker)https://github.com/danielearwicker
on Sep 17, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247762666
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Sep 18, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247815399
Troy Gerwien (@yortus)https://github.com/yortus
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Sep 18, 2016https://github.com/microsoft/TypeScript/issues/10910#issuecomment-247892158
https://www.npmjs.com/package/deep-equalhttps://www.npmjs.com/package/deep-equal
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 19, 2016https://github.com/microsoft/TypeScript/issues/10910#event-794596572
https://github.com/NN---
NN (NN---)https://github.com/NN---
on May 20, 2017https://github.com/microsoft/TypeScript/issues/10910#issuecomment-302870545
https://github.com/MrMatthewLayton
Matthew Layton (MrMatthewLayton)https://github.com/MrMatthewLayton
on May 22, 2017https://github.com/microsoft/TypeScript/issues/10910#issuecomment-303058842
nn (@nn)https://github.com/nn
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on May 22, 2017https://github.com/microsoft/TypeScript/issues/10910#issuecomment-303088157
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/10910#event-1689913140
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/10910
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10910
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%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.