René's URL Explorer Experiment


Title: Proposal for generators design · Issue #2873 · microsoft/TypeScript · GitHub

Open Graph Title: Proposal for generators design · Issue #2873 · microsoft/TypeScript

X Title: Proposal for generators design · Issue #2873 · microsoft/TypeScript

Description: A generator is a syntactic way to declare a function that can yield. Yielding will give a value to the caller of the next() method of the generator, and will suspend execution at the yield point. A generator also supports yield * which m...

Open Graph Description: A generator is a syntactic way to declare a function that can yield. Yielding will give a value to the caller of the next() method of the generator, and will suspend execution at the yield point. A...

X Description: A generator is a syntactic way to declare a function that can yield. Yielding will give a value to the caller of the next() method of the generator, and will suspend execution at the yield point. A...

Mail addresses
notifications@github.com

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proposal for generators design","articleBody":"A generator is a syntactic way to declare a function that can yield. Yielding will give a value to the caller of the next() method of the generator, and will suspend execution at the yield point. A generator also supports `yield *` which means that it will delegate to another generator and yield the results that the inner generator yields. `yield` and `yield *` are also bi-directional. A value can flow in as well as out.\n\nLike an iterator, the thing returned by the next method has a done property and a value property. Yielding sets done to false, and returning sets done to true.\n\nA generator is also iterable. You can iterate over the yielded values of the generator, using for-of, spread or array destructuring. However, only yielded values come out when you use a generator in this way. Returned values are never exposed. As a result, this proposal only considers the value type of next() when the done property is false, since those are the ones that will normally be observed.\n# Basic support for generators\n## Type annotation on a generator\n\nA generator function can have a return type annotation, just like a function. The annotation represents the type of the generator returned by the function. Here is an example:\n\n``` ts\nfunction *g(): Iterable\u003cstring> {\n    for (var i = 0; i \u003c 100; i++) {\n        yield \"\"; // string is assignable to string\n    }\n    yield * otherStringGenerator(); // otherStringGenerator must be iterable and element type assignable to string\n}\n```\n\nHere are the rules:\n- ~~The type annotation must be assignable to `Iterable\u003cany>`~~.\n  - This has been revised: `IterableIterator\u003cany>` must be assignable to the type annotation instead.\n- The operand of every yield expression (if present) must be assignable to the element type of the generator (string in this case)\n- The operand of every `yield *` expression must be assignable to `Iterable\u003cany>`\n- The element type of the operand of every `yield *` expression must be assignable to the element type of the generator. (string is assignable to string)\n- The operand of a `yield` (if present) expression is contextually typed by the element type of the generator (string)\n- The operand of a `yield *` expression is contextually typed by the type of the generator (`Iterable\u003cstring>`)\n- A `yield` expression has type any.\n- A `yield *` expression has type any.\n- ~~The generator is allowed to have return expressions as well, but they are ignored for the purposes of type checking the generator type.~~ The generator cannot have return expressions\n- Open question: Do we want to give an error for a return expression that is not assignable to the element type? If so, we would also contextually type it by the element type.\n  - Answer: we will give an error on all return expressions in a generator. Consider relaxing this later.\n- Open question: Should we allow void generators?\n  - Answer: no\n## Inferring the type of a generator\n\nA generator function with no type annotation can have the type annotation inferred. So in the following case, the type will be inferred from the yield statements:\n\n``` ts\nfunction *g() {\n    for (var i = 0; i \u003c 100; i++) {\n        yield \"\"; // infer string\n    }\n    yield * otherStringGenerator(); // infer element type of otherStringGenerator\n}\n```\n- Rather than inferring Iterable, we will infer IterableIterator, with some element type. The reason is that someone can call next directly on the generator without first getting its iterator. A generator is in fact an iterator as well as an iterable.\n- The element type is the common supertype of all the yield operands and the element types of all the `yield *` operands.\n- It is an error if there is no common supertype.\n- As before, the operand of every `yield *` expression must be assignable to `Iterable\u003cany>`\n- `yield` and `yield *` expressions again have type any\n- If the generator is contextually typed, the operands of `yield` expressions are contextually typed by the element type of the contextual type\n- If the generator is contextually typed, the operands of `yield *` expressions are contextually typed by the contextual type.\n- ~~Again, return expressions are allowed, but not used for inferring the element type.~~ Return expressions are not allowed. Consider relaxing this later, particularly if there is no type annotation.\n- Open question: Should we give an error for return expressions not assignable to element type (same as the question above)\n  - Answer: no return expressions.\n- If there are no yield operands and no `yield *` expressions, what should the element type be?\n  - Answer: implicit any\n## The `*` type constructor\n\nSince the Iterable type will be used a lot, it is a good opportunity to add a syntactic form for iterable types. We will use `T*` to mean `Iterable\u003cT>`, much the same as `T[]` is `Array\u003cT>`. It does not do anything special, it's just a shorthand. It will have the same grammatical precedence as `[]`.\n\nQuestion: Should it be an error to use `*` type if you are compiling below ES6.\n\nThe good things about this design is that it is super easy to create an iterable by declaring a generator function. And it is super easy to consume it like you would any other type of iterable.\n\n``` ts\nfunction *g(limit) {\n    for (var i = 0; i \u003c limit; i++) {\n        yield i;\n    }\n}\n\nfor (let i of g(100)) {\n    console.log(i);\n}\nvar array = [...g(50)];\nvar [first, second, ...rest] = g(100);\n```\n## Drawbacks of this basic design\n1. The type returned by a call to next is not always correct if the generator has a return expression.\n\n``` ts\nfunction *g() {\n    yield 0;\n    return \"\";\n}\nvar instance = g();\nvar x = instance.next().value; // x is number, correct\nvar x2 = instance.next().value; // x2 is given type number, but it's actually a string!\n```\n\nThis implies that maybe we should give an error when return expressions are not assignable to the element type. Though if we do, there is no way out.\n2. The types of `yield` and `yield *` expressions are just any. Many users will not care about these, but the type of the `yield` expression is useful if for example, you are implementing await on top of yield.\n3. If you type your generator with the `*` type, it does not allow someone to call next directly on the generator. Instead they must cast the generator or get the iterator from the generator.\n\n``` ts\nfunction *g(): number* {\n    yield 0;\n}\nvar gen = g();\ngen.next(); // Error, but allowed in ES6 (preferred in fact)\n(\u003cIterableIterator\u003cnumber>>gen).next(); // works, but really ugly\ngen[Symbol.iterator]().next(); // works, but pretty ugly as well\n```\n\nTo clarify, issue 3 is not an issue for for-of, spread, and destructuring. It is only an issue for direct calls to next. The good thing is that you can get around this by either leaving off the type annotation from the generator, or by typing it as an IterableIterator.\n# Advanced additions to proposal\n\nTo help alleviate issue 2, we can introduce a nominal Generator type (already in es6.d.ts today). It is an interface, but the compiler would have a special understanding of its type arguments. It would look something like this:\n\n``` ts\ninterface Generator\u003cTYield, TReturn, TNext> extends IterableIterator\u003cTYield /*| TReturn*/> {\n    next(n: TNext): IteratorResult\u003cTYield /*|TReturn*/>;\n    // throw and return methods elided\n}\n```\n\nNotice that TReturn is not used in the type, but it will have special meaning if you are using something that is nominally a Generator. Use of the Generator type annotation is purely optional. The reason that we need to omit TReturn in the next method is so that Generator can be assignable to `IterableIterator\u003cTYield>`. Note that this means issue 1 still remains.\n- The type of a `yield` expression will be the type of TNext\n\n``` ts\nfunction *g(): Generator\u003cnumber, any, string> {\n   var x = yield 0; // x has type string\n}\n```\n- If the user does not specify the Generator type annotation, then consuming a yield expression **as an expression** will be an implicit any. Yield expression statements will be unaffected.\n- For a return expression not assignable to the yield type of the generator, we can give an error (require a type annotation) or we can infer `Generator\u003cTYield, TReturn, any>`?\n\n``` ts\nfunction *g() {\n    yield 0;\n    return \"\"; // Error or infer TReturn as string\n}\n```\n\nOnce we have TReturn in place, the following rules are added:\n- If the operand of `yield *` is a Generator, then the `yield *` expression has the type TReturn (the second type argument of that generator)\n- If the operand of a `yield *` is a Generator, and the `yield *` expression is inside a Generator, TNext of the outer generator must be assignable to TNext of the inner one.\n\n``` ts\nfunction *g1(): Generator\u003cany, any, string> {\n    var t = yield * g2(); // Error that string is not assignable to number\n}\nfunction *g2(): Generator\u003cany, any, number> {\n    var s = yield 0;\n}\n```\n- If the operand of `yield *` is not a Generator, and the `yield *` is used as an expression, it will be an implicit any.\n\nOk, now for issue 1, the incorrectness of next. There is no great way to do this. But one idea, courtesy of @CyrusNajmabadi, is to use TReturn in the body of the Generator interface, so that it looks like this:\n\n``` ts\ninterface Generator\u003cTYield, TReturn, TNext> extends IterableIterator\u003cTYield> {\n    next(n: TNext): IteratorResult\u003cTYield | TReturn>;\n    // throw and return methods elided\n}\n```\n\nAs it is, Generator will not be assignable to `IterableIterator\u003cTYield>`. To make it assignable, we would change assignability so that every time we assign `Generator\u003cTYield, TReturn, TNext>` to something, assignability changes this to `Generator\u003cTYield, any, TNext>` for the purposes of the assignment. This is very easy to do in the compiler.\n\nWhen we do this, we get the following result:\n\n``` ts\nfunction *g() {\n    yield 0;\n    return \"\";\n}\nvar g1 = g();\nvar x1 = g1.next().value; // number | string (was number with old typing)\nvar x2 = g1.next().value; // number | string (was number with old typing, and should be string)\n\nvar g2: Iterator\u003cnumber> = g(); // Assignment is allowed by special rule!\nvar x3 = g2.next(); // number, correct\nvar x4 = g2.next(); // number, should be string\n```\n\nSo you lose the correctness of next when you subsume the generator into an iterable/iterator. But you at least get general correctness when you are using it raw, as a generator.\n\nAdditionally, operators like for-of, spread, and destructuring would just get TYield, and would be unaffected by this addition, including if they are done on a Generator.\n\nThank you to everyone who helped come up with these ideas.\n","author":{"url":"https://github.com/JsonFreeman","@type":"Person","name":"JsonFreeman"},"datePublished":"2015-04-22T20:02:06Z","url":"https://github.com/microsoft/TypeScript/issues/2873"}

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:159f4ded-9d5d-bdfb-9927-13bc7d8cc62d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF64:1ADDC2:11CC1E:18F486:6AFBEC88
html-safe-nonce5a99127d5e3d553c6849e0a6437f7ca76f63cbe15b2421418def274347a9728d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY0OjFBRERDMjoxMUNDMUU6MThGNDg2OjZBRkJFQzg4IiwidmlzaXRvcl9pZCI6IjEyNzAzNTE2NTAzNTA2ODk0MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac99b0ab2b69c9a920c0346c56840e1fa19e275c1e060281628453ff03713a358d
hovercard-subject-tagissue:70221605
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/2873/issue_layout
twitter:imagehttps://opengraph.githubassets.com/883941f4badc64225a0d9d9f95c18f8f502fd1371ee9b9c18f597d1b19630323/microsoft/TypeScript/issues/2873
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/883941f4badc64225a0d9d9f95c18f8f502fd1371ee9b9c18f597d1b19630323/microsoft/TypeScript/issues/2873
og:image:altA generator is a syntactic way to declare a function that can yield. Yielding will give a value to the caller of the next() method of the generator, and will suspend execution at the yield point. A...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJsonFreeman
hostnamegithub.com
expected-hostnamegithub.com
None744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec
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
releasedf859c48a4c8b4c0009c19bb4e82101aacb4b998
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/2873#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F2873
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%2F2873
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/2873
Reloadhttps://github.com/microsoft/TypeScript/issues/2873
Reloadhttps://github.com/microsoft/TypeScript/issues/2873
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests335 (335)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/2873
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/2873
Proposal for generators designhttps://github.com/microsoft/TypeScript/issues/2873#top
ES6Relates to the ES6 Spechttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22ES6%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SpecIssues related to the TypeScript language specificationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Spec%22
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
on Apr 22, 2015https://github.com/microsoft/TypeScript/issues/2873#issue-70221605
Cyrus Najmabadi (@CyrusNajmabadi)https://github.com/CyrusNajmabadi
Nexthttps://github.com/microsoft/TypeScript/issues/2873?timeline_page=1
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
SpecIssues related to the TypeScript language specificationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Spec%22
ES6Relates to the ES6 Spechttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22ES6%22
on Apr 22, 2015https://github.com/microsoft/TypeScript/issues/2873#event-287638216
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
on Apr 24, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96058983
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 24, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96079956
https://github.com/CyrusNajmabadi
Cyrus Najmabadi (CyrusNajmabadi)https://github.com/CyrusNajmabadi
on Apr 24, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96089743
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96904588
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96905337
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96939031
Grifforkhttps://github.com/Griffork
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96945812
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96948443
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96948595
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96952847
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-96987775
cohttps://github.com/tj/co
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-97001873
Troy Gerwien (@yortus)https://github.com/yortus
https://github.com/jbondc
Jon (jbondc)https://github.com/jbondc
on Apr 28, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-97026619
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98011710
Troy Gerwien (@yortus)https://github.com/yortus
Jason Freeman (@JsonFreeman)https://github.com/JsonFreeman
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98012010
Consider using union types for function return expressions #921https://github.com/microsoft/TypeScript/issues/921
Boolean literal types and return type propagation for generators #2983https://github.com/microsoft/TypeScript/issues/2983
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98012333
Jason Freeman (@JsonFreeman)https://github.com/JsonFreeman
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98014646
Jason Freeman (@JsonFreeman)https://github.com/JsonFreeman
Grifforkhttps://github.com/Griffork
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98016091
#921https://github.com/microsoft/TypeScript/issues/921
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98016885
https://github.com/Griffork
Grifforkhttps://github.com/Griffork
on May 1, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-98016945
Jason Freeman (@JsonFreeman)https://github.com/JsonFreeman
https://github.com/cveld
Carl in 't Veld (cveld)https://github.com/cveld
on Sep 7, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138276630
https://github.com/NekR
Arthur Stolyar (NekR)https://github.com/NekR
on Sep 7, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138334531
Carl in 't Veld (@cveld)https://github.com/cveld
https://github.com/cveld
Carl in 't Veld (cveld)https://github.com/cveld
on Sep 7, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138353818
Carl in 't Veld (@cveld)https://github.com/cveld
https://github.com/cveldhttps://github.com/cveld
#2873 (comment)https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138334531
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 8, 2015https://github.com/microsoft/TypeScript/issues/2873#event-403939458
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Sep 8, 2015https://github.com/microsoft/TypeScript/issues/2873#event-403939605
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 8, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138646493
#3031https://github.com/microsoft/TypeScript/pull/3031
#3031https://github.com/microsoft/TypeScript/pull/3031
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 8, 2015https://github.com/microsoft/TypeScript/issues/2873#issuecomment-138646571
Carl in 't Veld (@cveld)https://github.com/cveld
microsofthttps://github.com/microsoft
on Jun 18, 2018https://github.com/microsoft/TypeScript/issues/2873#event-1686931123
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/2873
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/2873
ES6Relates to the ES6 Spechttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22ES6%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SpecIssues related to the TypeScript language specificationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Spec%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.