Title: Suggestion: Experimental Support for ECMAScript Stage 1/2 Proposals · Issue #19044 · microsoft/TypeScript · GitHub
Open Graph Title: Suggestion: Experimental Support for ECMAScript Stage 1/2 Proposals · Issue #19044 · microsoft/TypeScript
X Title: Suggestion: Experimental Support for ECMAScript Stage 1/2 Proposals · Issue #19044 · microsoft/TypeScript
Description: We have generally chosen to only support ECMAScript Stage 3 and later proposals in TypeScript, with few exceptions. I propose that we choose to adopt earlier stage proposals through a combination of experimental switches and targets: By ...
Open Graph Description: We have generally chosen to only support ECMAScript Stage 3 and later proposals in TypeScript, with few exceptions. I propose that we choose to adopt earlier stage proposals through a combination o...
X Description: We have generally chosen to only support ECMAScript Stage 3 and later proposals in TypeScript, with few exceptions. I propose that we choose to adopt earlier stage proposals through a combination o...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/19044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Experimental Support for ECMAScript Stage 1/2 Proposals","articleBody":"We have generally chosen to only support ECMAScript Stage 3 and later proposals in TypeScript, with few exceptions. I propose that we choose to adopt earlier stage proposals through a combination of experimental switches and targets:\r\n\r\n- By default, for any early stage proposal we **do not** scan, parse, check, or emit any related syntax.\r\n- When an experimental feature is enabled, write a diagnostic warning message to the output.\r\n- Add an `--experimentalStageNProposalName` switch for any early-stage proposal we opt to support to enable scan, parse, check, and emit for that proposal.\r\n- Add an `--experimentalStageN` switch to enable all experimental proposals in that stage.\r\n- Add a `--target esstageN` target to disable down-level emit for any proposal in that stage.\r\n- If a proposal advances between stages and changes syntax or runtime semantics, we can differentiate between each stage of that feature with a different switch.\r\n- Once a proposal has advanced to Stage 3 or beyond, we can deprecate and eventually remove any outdated experimental switches in each release cycle.\r\n- If necessary, we could consider restricting these experimental features to `@next` builds only.\r\n\r\nNote that this differs from the behavior of the current `--experimentalDecorators` switch in that we always parse decorators today, but issue a warning that is disabled with the switch. For this proposal we would **never parse** experimental features if the switch is **disabled**, and **always issue a warning** when it is **enabled**.\r\n\r\nThis would allow us to get valuable early feedback in TypeScript for various ECMAScript proposals as they advance while reducing the likelihood that developers become dependent on a feature whose experimental nature can change without notice due to a silently ignored warning. \r\n","author":{"url":"https://github.com/rbuckton","@type":"Person","name":"rbuckton"},"datePublished":"2017-10-09T19:10:16Z","url":"https://github.com/microsoft/TypeScript/issues/19044"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6cb1522a-67a2-5f0a-99b5-056b3e3a3652 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8592:1F8F:14662D:1AB2D1:6B01021A |
| html-safe-nonce | e5b28ffeb31d2c8ac078a5229b90258e65347d2ee5f67679f1e6f1d9fb1c6a48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTkyOjFGOEY6MTQ2NjJEOjFBQjJEMTo2QjAxMDIxQSIsInZpc2l0b3JfaWQiOiI1Mzc1MTM3NTQ1Mzc2MDM5NDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 31b5df507fd59c9167856dc5196e0590156a467da47f36c6f3975e58c9bd67bf |
| hovercard-subject-tag | issue:263997146 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/19044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a90ef12e3a7b2b7dedcf6f73823978072075199164af84cd740e174fff8d7881/microsoft/TypeScript/issues/19044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a90ef12e3a7b2b7dedcf6f73823978072075199164af84cd740e174fff8d7881/microsoft/TypeScript/issues/19044 |
| og:image:alt | We have generally chosen to only support ECMAScript Stage 3 and later proposals in TypeScript, with few exceptions. I propose that we choose to adopt earlier stage proposals through a combination o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rbuckton |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width