René's URL Explorer Experiment


Title: Add pure and immutable keywords to ensure code has no unintended side-effects · Issue #17181 · microsoft/TypeScript · GitHub

Open Graph Title: Add pure and immutable keywords to ensure code has no unintended side-effects · Issue #17181 · microsoft/TypeScript

X Title: Add pure and immutable keywords to ensure code has no unintended side-effects · Issue #17181 · microsoft/TypeScript

Description: The aim of this proposal is to add some immutability and pure checking into the typescript compiler. The proposal adds two new keywords that would give developers a means to define functions that are pure - meaning that the function has ...

Open Graph Description: The aim of this proposal is to add some immutability and pure checking into the typescript compiler. The proposal adds two new keywords that would give developers a means to define functions that a...

X Description: The aim of this proposal is to add some immutability and pure checking into the typescript compiler. The proposal adds two new keywords that would give developers a means to define functions that a...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add pure and immutable keywords to ensure code has no unintended side-effects","articleBody":"The aim of this proposal is to add some immutability and pure checking into the typescript compiler. The proposal adds two new keywords that would give developers a means to define functions that are pure - meaning that the function has no-side effects, and define variables that are immutable - meaning that they can never be used in an impure context.\r\n\r\n### Pure\r\nThe `pure` keyword is used to define a function with no side-effects ([it is allowed in the same places as the `async` keyword](https://tc39.github.io/ecma262/#sec-async-function-definitions)).\r\n```TS\r\npure function x(arg) {\r\n    return arg\r\n}\r\n```\r\nThe keyword should be not be emitted into compiled javascript code.\r\n\r\nA pure function:\r\n- May not call an function not tagged as pure in the context of arguments, or this.\r\n  - `this.nonPure()`, `arg.nonPure()`, `nonPure(arg)`, and `nonPure(this)` are all disallowed.\r\n- May make non-pure calls on instance variables, as the non-pureness applies to instance variables, so the function is technically still side-effect free:\r\n```JS\r\npure function x() {\r\n    const arr = []\r\n    arr.push(1)\r\n    return arr\r\n}\r\n```\r\n  - - _this one i'm not entirely sure about, but it seems like it would be very hard to build pure functions without it._\r\n  - - _languages like elm get around this by having a push function which returns a new array._\r\n- Modify the input variables\r\n  - `arg.x = 1` is disallowed within the function body.\r\n- Modify variables on `this`\r\n  - `this.y = 1` is disallowed within the function body.\r\n- Must return a value (otherwise there's no point to the function!).\r\n\r\n### Immutable\r\nSimilarly a variable may be tagged as immutable:\r\n`immutable x = []` (maybe keyword should be shortened to `immut`, or the `pure` keyword could be reused for consistency?).\r\nThis keyword is replaced with `const` in emitted code.\r\n\r\nAn immutable variable:\r\n- Is treated as if it were `const` (i.e. its reference may not be reassigned).\r\n- May not have any impure instance methods called on it.\r\n  - `x.nonPure()` is disallowed.\r\n- May not be passed as an argument to impure functions.\r\n  - `nonPure(x)` is disallowed.\r\n- May not be reassigned to a variable reference that is also not marked as pure.\r\n  - `const y = x;` is disallowed.\r\n  - `const y = { z: x }` is disallowed.\r\n- May not have instance properties set on it.\r\n  - `x.foo = 1` is disallowed.\r\n- May be passed to pure functions.\r\n  - `pureFn(x)` is allowed.\r\n- May have pure instance methods called on it.\r\n  - `x.toString()` is allowed.\r\n- For arrays, its type is strictly set at definition time, meaning that element-wise type checks will pass (fixes: https://github.com/Microsoft/TypeScript/issues/16389)\r\n  - i.e. the following code will now pass\r\n```TS\r\npure function fn(arg : ('a' | 'b')[]) { }\r\n\r\nimmutable x = ['a', 'b']\r\nfn(x)\r\n```\r\n\r\n### With objects/interfaces\r\nThe keyword(s) should also be allowed in `object` (and by extension `interface`) definitions:\r\n```TS\r\nconst obj1 = {\r\n    // immutable and non-pure\r\n    immutable fn1: function () { },\r\n    \r\n    // mutable and pure\r\n    fn2: pure function () { },\r\n\r\n    // immutable and pure\r\n    immutable fn3: pure function () { },\r\n\r\n    // immutable and non-pure\r\n    immutable fn3() { },\r\n\r\n    // immutable and pure\r\n    pure fn3() { },\r\n}\r\n\r\ninterface IFace {\r\n    pure toString() : string // pure must always return a value\r\n\r\n    immutable prop : number\r\n\r\n    immutable pure frozenFn() : boolean\r\n}\r\n```\r\n\r\n### With existing typings\r\nWith this proposal, the base javascript typings could be updated to support it.\r\nI.e. the array interface would become:\r\n```TS\r\ninterface Array\u003cT> {\r\n    pure toString(): string;\r\n    pure toLocaleString(): string;\r\n    pure concat(...items: T[][]): T[];\r\n    pure concat(...items: (T | T[])[]): T[];\r\n    pure join(separator?: string): string;\r\n    pure indexOf(searchElement: T, fromIndex?: number): number;\r\n    pure lastIndexOf(searchElement: T, fromIndex?: number): number;\r\n    pure every(callbackfn: (this: void, value: T, index: number, array: T[]) => boolean): boolean;\r\n    pure every(callbackfn: (this: void, value: T, index: number, array: T[]) => boolean, thisArg: undefined): boolean;\r\n    pure every\u003cZ>(callbackfn: (this: Z, value: T, index: number, array: T[]) => boolean, thisArg: Z): boolean;\r\n    pure some(callbackfn: (this: void, value: T, index: number, array: T[]) => boolean): boolean;\r\n    pure some(callbackfn: (this: void, value: T, index: number, array: T[]) => boolean, thisArg: undefined): boolean;\r\n    pure some\u003cZ>(callbackfn: (this: Z, value: T, index: number, array: T[]) => boolean, thisArg: Z): boolean;\r\n    pure forEach(callbackfn: (this: void, value: T, index: number, array: T[]) => void): void;\r\n    pure forEach(callbackfn: (this: void, value: T, index: number, array: T[]) => void, thisArg: undefined): void;\r\n    pure forEach\u003cZ>(callbackfn: (this: Z, value: T, index: number, array: T[]) => void, thisArg: Z): void;\r\n    pure map\u003cU>(this: [T, T, T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U): [U, U, U, U, U];\r\n    pure map\u003cU>(this: [T, T, T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U, thisArg: undefined): [U, U, U, U, U];\r\n    pure map\u003cZ, U>(this: [T, T, T, T, T], callbackfn: (this: Z, value: T, index: number, array: T[]) => U, thisArg: Z): [U, U, U, U, U];\r\n    pure map\u003cU>(this: [T, T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U): [U, U, U, U];\r\n    pure map\u003cU>(this: [T, T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U, thisArg: undefined): [U, U, U, U];\r\n    pure map\u003cZ, U>(this: [T, T, T, T], callbackfn: (this: Z, value: T, index: number, array: T[]) => U, thisArg: Z): [U, U, U, U];\r\n    pure map\u003cU>(this: [T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U): [U, U, U];\r\n    pure map\u003cU>(this: [T, T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U, thisArg: undefined): [U, U, U];\r\n    pure map\u003cZ, U>(this: [T, T, T], callbackfn: (this: Z, value: T, index: number, array: T[]) => U, thisArg: Z): [U, U, U];\r\n    pure map\u003cU>(this: [T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U): [U, U];\r\n    pure map\u003cU>(this: [T, T], callbackfn: (this: void, value: T, index: number, array: T[]) => U, thisArg: undefined): [U, U];\r\n    pure map\u003cZ, U>(this: [T, T], callbackfn: (this: Z, value: T, index: number, array: T[]) => U, thisArg: Z): [U, U];\r\n    pure map\u003cU>(callbackfn: (this: void, value: T, index: number, array: T[]) => U): U[];\r\n    pure map\u003cU>(callbackfn: (this: void, value: T, index: number, array: T[]) => U, thisArg: undefined): U[];\r\n    pure map\u003cZ, U>(callbackfn: (this: Z, value: T, index: number, array: T[]) => U, thisArg: Z): U[];\r\n    pure filter(callbackfn: (this: void, value: T, index: number, array: T[]) => any): T[];\r\n    pure filter(callbackfn: (this: void, value: T, index: number, array: T[]) => any, thisArg: undefined): T[];\r\n    pure filter\u003cZ>(callbackfn: (this: Z, value: T, index: number, array: T[]) => any, thisArg: Z): T[];\r\n    pure reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;\r\n    pure reduce\u003cU>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\r\n    pure reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;\r\n    pure reduceRight\u003cU>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\r\n\r\n    push(...items: T[]): number;\r\n    pop(): T | undefined;\r\n    reverse(): T[];\r\n    shift(): T | undefined;\r\n    slice(start?: number, end?: number): T[];\r\n    sort(compareFn?: (a: T, b: T) => number): this;\r\n    splice(start: number, deleteCount?: number): T[];\r\n    splice(start: number, deleteCount: number, ...items: T[]): T[];\r\n    unshift(...items: T[]): number;\r\n\r\n    [n: number]: T;\r\n}\r\n```","author":{"url":"https://github.com/bradzacher","@type":"Person","name":"bradzacher"},"datePublished":"2017-07-14T01:24:16Z","url":"https://github.com/microsoft/TypeScript/issues/17181"}

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:4388f6e1-732d-abe3-e523-1e4bb028de64
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE5A2:150E61:A12C9:DE522:6AFBC89B
html-safe-nonce78aa875d8bc0284eb61b7ccd2eb4652e6cdbb2718a8d728bbccfe1d2a3ba5e2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUEyOjE1MEU2MTpBMTJDOTpERTUyMjo2QUZCQzg5QiIsInZpc2l0b3JfaWQiOiI3NTAwMjIxMTUyMjIwNjYxOTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc33522980d5fed078770b9ffb83631cdd2a58852dc17c825a0df1bc6d59de75b
hovercard-subject-tagissue:242872595
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/17181/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8f8ce2b433378f1ddc23e51318089473dff1e1f054bac210ee6993b7cb0414fa/microsoft/TypeScript/issues/17181
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f8ce2b433378f1ddc23e51318089473dff1e1f054bac210ee6993b7cb0414fa/microsoft/TypeScript/issues/17181
og:image:altThe aim of this proposal is to add some immutability and pure checking into the typescript compiler. The proposal adds two new keywords that would give developers a means to define functions that a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebradzacher
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/17181#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F17181
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%2F17181
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/17181
Reloadhttps://github.com/microsoft/TypeScript/issues/17181
Reloadhttps://github.com/microsoft/TypeScript/issues/17181
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/17181
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/17181
Add pure and immutable keywords to ensure code has no unintended side-effectshttps://github.com/microsoft/TypeScript/issues/17181#top
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#issue-242872595
it is allowed in the same places as the async keywordhttps://tc39.github.io/ecma262/#sec-async-function-definitions
Type checking element typed arrays #16389https://github.com/microsoft/TypeScript/issues/16389
Brad Zacher (bradzacher)https://github.com/bradzacher
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#event-1163586271
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#issuecomment-315311264
#13721https://github.com/microsoft/TypeScript/issues/13721
#6532https://github.com/microsoft/TypeScript/pull/6532
Kitson Kelly (kitsonk)https://github.com/kitsonk
Pure annotation in downlevel emits #13721https://github.com/microsoft/TypeScript/issues/13721
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#event-1163964613
Kitson Kelly (kitsonk)https://github.com/kitsonk
Readonly properties and index signatures #6532https://github.com/microsoft/TypeScript/pull/6532
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#event-1163964615
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#issuecomment-315313544
#13721https://github.com/microsoft/TypeScript/issues/13721
#6532https://github.com/microsoft/TypeScript/pull/6532
#16389https://github.com/microsoft/TypeScript/issues/16389
Brad Zacher (bradzacher)https://github.com/bradzacher
Type checking element typed arrays #16389https://github.com/microsoft/TypeScript/issues/16389
on Jul 14, 2017https://github.com/microsoft/TypeScript/issues/17181#event-1163979672
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
on Aug 10, 2017https://github.com/microsoft/TypeScript/issues/17181#issuecomment-321457201
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
on Aug 13, 2017https://github.com/microsoft/TypeScript/issues/17181#issuecomment-322022955
Brad Zacher (@bradzacher)https://github.com/bradzacher
checkerhttps://raw.githubusercontent.com/Microsoft/TypeScript/master/src/compiler/checker.ts
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Aug 23, 2017https://github.com/microsoft/TypeScript/issues/17181#event-1218682209
https://github.com/michaeljota
Michael De Abreu (michaeljota)https://github.com/michaeljota
on Apr 18, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382396791
Brad Zacher (bradzacher)https://github.com/bradzacher
Type checking element typed arrays #16389https://github.com/microsoft/TypeScript/issues/16389
on Apr 18, 2018https://github.com/microsoft/TypeScript/issues/17181#event-1581581016
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Apr 18, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382406074
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 18, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382443592
https://github.com/michaeljota
Michael De Abreu (michaeljota)https://github.com/michaeljota
on Apr 18, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382512657
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Apr 19, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382627080
https://github.com/michaeljota
Michael De Abreu (michaeljota)https://github.com/michaeljota
on Apr 19, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382756931
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Apr 19, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-382914072
https://github.com/michaeljota
Michael De Abreu (michaeljota)https://github.com/michaeljota
on Apr 20, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-383132811
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Aug 15, 2018https://github.com/microsoft/TypeScript/issues/17181#event-1791045419
https://github.com/michaeljota
Michael De Abreu (michaeljota)https://github.com/michaeljota
on Nov 23, 2018https://github.com/microsoft/TypeScript/issues/17181#issuecomment-441305848
Brad Zacher (@bradzacher)https://github.com/bradzacher
no-unused-expressionhttps://palantir.github.io/tslint/rules/no-unused-expression/
#14909https://github.com/microsoft/TypeScript/issues/14909
https://github.com/munizart
Muniz (munizart)https://github.com/munizart
on May 14, 2020https://github.com/microsoft/TypeScript/issues/17181#issuecomment-628360340
Michael De Abreu (@michaeljota)https://github.com/michaeljota
Brad Zacher (@bradzacher)https://github.com/bradzacher
Brad Zacher (@bradzacher)https://github.com/bradzacher
https://github.com/emilioplatzer
Emilio (emilioplatzer)https://github.com/emilioplatzer
on Feb 11, 2021https://github.com/microsoft/TypeScript/issues/17181#issuecomment-777465081
#42758https://github.com/microsoft/TypeScript/issues/42758
https://github.com/jpierson
Jeff (jpierson)https://github.com/jpierson
on Mar 16, 2021https://github.com/microsoft/TypeScript/issues/17181#issuecomment-800307288
dotnet/roslyn#7561https://github.com/dotnet/roslyn/issues/7561
https://github.com/jpierson
Jeff (jpierson)https://github.com/jpierson
on Mar 16, 2021https://github.com/microsoft/TypeScript/issues/17181#issuecomment-800312033
consthttps://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html#const-fn
Denohttps://github.com/denoland/deno
https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html#const-fnhttps://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html#const-fn
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
on Sep 13, 2021https://github.com/microsoft/TypeScript/issues/17181#issuecomment-918507409
https://docs.hhvm.com/hack/contexts-and-capabilities/available-contexts-and-capabilitieshttps://docs.hhvm.com/hack/contexts-and-capabilities/available-contexts-and-capabilities
https://github.com/rubenlg
Rubén López (rubenlg)https://github.com/rubenlg
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/17181#issuecomment-1097371126
https://github.com/nkallen
Nick Kallen (nkallen)https://github.com/nkallen
on Sep 13, 2025https://github.com/microsoft/TypeScript/issues/17181#issuecomment-3288342484
#17181 (comment)https://github.com/microsoft/TypeScript/issues/17181#issuecomment-918507409
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/17181
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/17181
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%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.