René's URL Explorer Experiment


Title: Nightly-only experimental features · Issue #28152 · microsoft/TypeScript · GitHub

Open Graph Title: Nightly-only experimental features · Issue #28152 · microsoft/TypeScript

X Title: Nightly-only experimental features · Issue #28152 · microsoft/TypeScript

Description: This idea came about from a discussion I had with Yehuda Katz (@wycats) back in July when we discussed how Rust ships experimental features without the team feeling "locked in" if too many people take a dependency on it. If I'm suggestin...

Open Graph Description: This idea came about from a discussion I had with Yehuda Katz (@wycats) back in July when we discussed how Rust ships experimental features without the team feeling "locked in" if too many people t...

X Description: This idea came about from a discussion I had with Yehuda Katz (@wycats) back in July when we discussed how Rust ships experimental features without the team feeling "locked in" if too man...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nightly-only experimental features","articleBody":"This idea came about from a discussion I had with @wycats back in July when we discussed how Rust ships experimental features without the team feeling \"locked in\" if too many people take a dependency on it. If I'm suggesting anything drastically different from what we discussed, hopefully he can correct me.\r\n\r\n# Motivation\r\n\r\nFor some background, we've been helping a few of our friends at Bloomberg to implement ECMA262's private class fields proposal within the TypeScript compiler; however, given the sort of contentious feedback that we've seen on the proposal's repository, we'd like to first elicit feedback from the broader community around use-cases and general opinions around the private class fields proposal. But there's two problems with that.\r\n\r\n1. It's hard to get feedback about an implementation that's hard to npm install!\r\n1. The work is already done! And the longer that we put off merging it in, the more difficult it becomes later on.\r\n\r\nHow do we solve the above two problems without risking a change of course from ECMA262's proposal?\r\n\r\n# Not the solution\r\n\r\n## Release with `--experimentalPrivateFields`\r\n\r\nIn the last ~2 years or so, we've been extremely wary of [adding any flags](https://github.com/Microsoft/TypeScript/issues?q=is%3Aopen+is%3Aissue+label%3A%22Add+a+Flag%22) to control experimental features, specifically because we know that `--experimentalDecorators` became a widespread hard dependency in the community in which the implementation deviated from the current ECMAScript proposal. How can you reasonably ever kill something like `--experimentalPrivateFields` if it ever landed in a stable release?\r\n\r\nMaybe the solution is to never land it in a stable release!\r\n\r\n# Maybe the solution\r\n\r\n## Release only nightlies with `--experimentalPrivateFields`\r\n\r\nTypeScript publishes a nightly release every, uh, I guess night depending on your time zone 🌏🌍🌎. Typically these releases are a good test bed for early adopters who want the latest and greatest features and bug fixes. Much of the time, they're purely for experimenting with features early on. General stability of the release is implied (i.e. usable with no major crashes or anything) but features themselves are prone to changing.\r\n\r\nThe idea here would be that if you wanted to actually use the private class fields proposal, you would have to get off of a stable version of TypeScript and then opt in with the flag.\r\n\r\nSo a user would have to run\r\n\r\n```sh\r\nnpm install typescript@next\r\n```\r\n\r\nto get the appropriate nightly release. At this point, trying to compile code with a private class field would result in the following error message on the declaration.\r\n\r\n```\r\nUsing private class fields requires opting in to the `--experimentalPrivateFields` flag. Note that this flag is only available in nightly releases, that its functionality may change, and that it may be removed entirely. Regardless, feedback from experimentation is appreciated\r\n```\r\n\r\nAt which point users could update their `tsconfig.json`\r\n\r\n```json5\r\n{\r\n    \"compilerOptions\": {\r\n        // ...\r\n        \"experimentalPrivateFields\": true\r\n    }\r\n    // ...\r\n}\r\n```\r\n\r\n## Completely error in non-nightly releases\r\n\r\nUnder a non-nightly release (insiders, rc, latest, whatever's not `next`/`dev`), TypeScript should completely refuse to recognize the `--experimentalPrivateFields` option. It is an error to utilize it and it should prevent compilation from succeeding. Using it might result in an error message like\r\n\r\n```\r\n'--experimentalPrivateFields' is an experimental option that is only available on unstable nightly releases. To use it, you must install a nightly version of TypeScript via 'npm install typescript@next'.\r\n```\r\n\r\n# Precedent\r\n\r\n* IIRC @wycats mentioned that this is already something the Rust team does.\r\n* Browsers like Chrome ship certain JavaScript features only in canary (nightly) builds, but users have to explicitly jump into their settings and turn it on.\r\n\r\n# Other considerations\r\n\r\nThis functionality might need some minimal changes to our testing infrastructure, and appropriate feature gating utilities; however, I'm not convinced this will come up often enough that we will need to build up any heavy-weight abstractions.\r\n\r\nCC: @robpalme @joeywatts @mheiber","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2018-10-26T05:44:11Z","url":"https://github.com/microsoft/TypeScript/issues/28152"}

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:709ad365-da85-cd23-58a5-204c37d06ef9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB96:361639:F0F6AC:141E965:6B010E1F
html-safe-nonce8311bac9903b8c31d8a4babccaee329a02991fbbff7bda6d27282a3c3509fcf0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjk2OjM2MTYzOTpGMEY2QUM6MTQxRTk2NTo2QjAxMEUxRiIsInZpc2l0b3JfaWQiOiI4NDgxNzIwMjY4NTQ3NDkzNDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac87ff8d3aed892d6ffe9e07591c99811c77838d23e5745ee272629511cdc21770
hovercard-subject-tagissue:374234876
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/28152/issue_layout
twitter:imagehttps://opengraph.githubassets.com/230a94379a5d7b41ea95f40dcdfbfa8cc101ddbf8e1e72a1e20251e9a79226b4/microsoft/TypeScript/issues/28152
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/230a94379a5d7b41ea95f40dcdfbfa8cc101ddbf8e1e72a1e20251e9a79226b4/microsoft/TypeScript/issues/28152
og:image:altThis idea came about from a discussion I had with Yehuda Katz (@wycats) back in July when we discussed how Rust ships experimental features without the team feeling "locked in" if too many people t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/28152#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F28152
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%2F28152
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/28152
Reloadhttps://github.com/microsoft/TypeScript/issues/28152
Reloadhttps://github.com/microsoft/TypeScript/issues/28152
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests310 (310)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/28152
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28152
Nightly-only experimental featureshttps://github.com/microsoft/TypeScript/issues/28152#top
RevisitAn issue worth coming back tohttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Revisit%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Oct 26, 2018https://github.com/microsoft/TypeScript/issues/28152#issue-374234876
Yehuda Katz (@wycats)https://github.com/wycats
adding any flagshttps://github.com/Microsoft/TypeScript/issues?q=is%3Aopen+is%3Aissue+label%3A%22Add+a+Flag%22
Yehuda Katz (@wycats)https://github.com/wycats
Rob Palmer (@robpalme)https://github.com/robpalme
Joey Watts (@joeywatts)https://github.com/joeywatts
Max Heiber (@mheiber)https://github.com/mheiber
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Oct 26, 2018https://github.com/microsoft/TypeScript/issues/28152#event-1927955262
https://github.com/ajafff
Klaus Meinhardt (ajafff)https://github.com/ajafff
on Oct 26, 2018https://github.com/microsoft/TypeScript/issues/28152#issuecomment-433375919
https://github.com/mheiber
Max Heiber (mheiber)https://github.com/mheiber
on Oct 26, 2018https://github.com/microsoft/TypeScript/issues/28152#issuecomment-433418400
Michael Gunter (@Neuroboy23)https://github.com/Neuroboy23
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Oct 27, 2018https://github.com/microsoft/TypeScript/issues/28152#issuecomment-433605030
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
RevisitAn issue worth coming back tohttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Revisit%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Dec 3, 2018https://github.com/microsoft/TypeScript/issues/28152#event-2002680160
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
not plannedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/28152#event-12006442109
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/28152
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28152
RevisitAn issue worth coming back tohttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Revisit%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.