René's URL Explorer Experiment


Title: Design Meeting Notes, 6/9/2017 · Issue #16415 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 6/9/2017 · Issue #16415 · microsoft/TypeScript

X Title: Design Meeting Notes, 6/9/2017 · Issue #16415 · microsoft/TypeScript

Description: Stricter generic signature checks Already did some work in #16072 to perfom type argument inference using the return type of a signature as a target. In #16305 we added support for signatures to gain type parameters from their contextual...

Open Graph Description: Stricter generic signature checks Already did some work in #16072 to perfom type argument inference using the return type of a signature as a target. In #16305 we added support for signatures to ga...

X Description: Stricter generic signature checks Already did some work in #16072 to perfom type argument inference using the return type of a signature as a target. In #16305 we added support for signatures to ga...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 6/9/2017","articleBody":"# Stricter generic signature checks\r\n\r\n* Already did some work in #16072 to perfom type argument inference using the return type of a signature as a target.\r\n* In #16305 we added support for signatures to *gain* type parameters from their contextual types.\r\n    * This behavior is more appropriate because it respects the constraints and the universality of each usage of type parameters.\r\n* To follow up with this, we're introducing stricter generic signature checks (#16368).\r\n    * Previously, when *relating* type parameters, we would erase them with the type `any`.\r\n    * This was fairly unsafe.\r\n    * Previously the following would work, but with #16368, the following is an error.\r\n      ```ts\r\n      type A = \u003cT, U>(x: T, y: U) => [T, U];\r\n      type B = \u003cS>(x: S, y: S) => [S, S];\r\n\r\n      function f(a: A, b: B) {\r\n          a = b;  // Error\r\n          b = a;  // Ok\r\n      }\r\n      ```\r\n    * This is kind of a form of unification between the two parameters.\r\n        * We infer using the type parameters of the target, as if we were calling the source with the target's parameters.\r\n            * In other words, in `a = b` above, it simulates calling `b` with `a`'s parameters.\r\n    * The caveat is that this logic is only applied to single-signature types.\r\n        * Any times you have overloads, it becomes extremely difficult to perform these checks.\r\n* So the question is: do we put this behind a flag?\r\n    * Most errors are good, but it's hard to figure out what to do for some advanced scenarios.\r\n    * Get it into `master` and see what we can work with.\r\n\r\n# Private Slots\r\n\r\nProposal: https://github.com/tc39/proposal-private-fields/ ([Permalink](https://github.com/tc39/proposal-private-fields/tree/e4c2dac915698db11f386ca85a13df3e3d67a9d0))\r\n\r\nRepo: https://tc39.github.io/proposal-private-fields/\r\n\r\n* How does this work with existing modifiers?\r\n    * See https://github.com/Microsoft/TypeScript/issues/16324#issuecomment-306890149\r\n\r\n* Can we offer a true downlevel translation?\r\n    * To ES5?\r\n        * No.\r\n        * Need weakmaps\r\n    * Yes above ES6.\r\n* Could give a mangled name in ES5/ES3.\r\n    * Has potential problems.\r\n        * Proxies, enumeration, etc.\r\n            * Proxies and the like don't exist in ES5.\r\n            * Best effort might be fine.\r\n* What about using Symbols in ES6?\r\n    * Symbols aren't truly private - can be used by proxies, can be iterated over, etc.\r\n* Weakmaps make it truly private.\r\n    * Are they performant?\r\n        * Concerns over the type of GC pressure it may cause.\r\n        * Edge is good at this!\r\n            * Implementation is that every object has a list of weakmaps so that the lookup is inverted.\r\n        * Others not as much at this point in time.\r\n            * But will eventually improve!\r\n    * But it's all opt-in.\r\n    * Is it possible that all users really want is design-time private?\r\n        * There are definitely people who've wanted private state.\r\n\r\n* P.S. ~~everyone hates the syntax.~~ we're not big on the syntax\r\n\r\n* Completely unrelated\r\n    * The proposal breaks JScript 5.8 in IE 8.\r\n        * ¯\\\\\\_(ツ)\\_/¯\r\n\r\n* We'll all need to go over the FAQ more closely on the private state proposal repo.\r\n    * https://github.com/tc39/proposal-private-fields/blob/master/FAQ.md\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2017-06-09T20:34:59Z","url":"https://github.com/microsoft/TypeScript/issues/16415"}

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:e640c8fb-3451-256f-412a-660fb41f2767
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAABA:3D4705:968BF0:C387A6:6B00DF2A
html-safe-nonce2e28c8e6f29b666a11133dd757e136199dc3ecc7e084664438d4a72c80647658
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUJBOjNENDcwNTo5NjhCRjA6QzM4N0E2OjZCMDBERjJBIiwidmlzaXRvcl9pZCI6IjcyMDMxMDk2NzI3NTkzODU4OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccfda666d2efddf1c35154d6453ccf5df5c13aa12cfa736f8864702105495efd9
hovercard-subject-tagissue:234932435
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/16415/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4515d60103e2abdf29ea76c0e1fe95b916040a144636e53920ffc1d1a6080128/microsoft/TypeScript/issues/16415
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4515d60103e2abdf29ea76c0e1fe95b916040a144636e53920ffc1d1a6080128/microsoft/TypeScript/issues/16415
og:image:altStricter generic signature checks Already did some work in #16072 to perfom type argument inference using the return type of a signature as a target. In #16305 we added support for signatures to ga...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/16415#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F16415
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%2F16415
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/16415
Reloadhttps://github.com/microsoft/TypeScript/issues/16415
Reloadhttps://github.com/microsoft/TypeScript/issues/16415
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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/16415
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/16415
Design Meeting Notes, 6/9/2017https://github.com/microsoft/TypeScript/issues/16415#top
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jun 9, 2017https://github.com/microsoft/TypeScript/issues/16415#issue-234932435
Infer from generic function return types #16072https://github.com/microsoft/TypeScript/pull/16072
Contextual generic function types #16305https://github.com/microsoft/TypeScript/pull/16305
Stricter generic signature checks #16368https://github.com/microsoft/TypeScript/pull/16368
Stricter generic signature checks #16368https://github.com/microsoft/TypeScript/pull/16368
https://github.com/tc39/proposal-private-fields/https://github.com/tc39/proposal-private-fields/
Permalinkhttps://github.com/tc39/proposal-private-fields/tree/e4c2dac915698db11f386ca85a13df3e3d67a9d0
https://tc39.github.io/proposal-private-fields/https://tc39.github.io/proposal-private-fields/
Compatibility with ECMAScript Private Fields proposal #16324 (comment)https://github.com/microsoft/TypeScript/issues/16324#issuecomment-306890149
https://github.com/tc39/proposal-private-fields/blob/master/FAQ.mdhttps://github.com/tc39/proposal-private-fields/blob/master/FAQ.md
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
on Jun 9, 2017https://github.com/microsoft/TypeScript/issues/16415#event-1117888962
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 12, 2017https://github.com/microsoft/TypeScript/issues/16415#event-1120369450
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 13, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-308272504
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 13, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-308273104
Dojo (@dojo)https://github.com/dojo
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 13, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-308273260
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 20, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-309720865
in the FAQhttps://github.com/tc39/proposal-private-fields/blob/master/FAQ.md
https://github.com/styfle
Steven (styfle)https://github.com/styfle
on Jun 20, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-309738382
Daniel Ehrenberg (@littledan)https://github.com/littledan
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 20, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-309755220
isn't currently a valid identifierhttps://mothereff.in/js-variables#%23foo
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 20, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-309768972
Steven (@styfle)https://github.com/styfle
a new FAQ entryhttps://github.com/tc39/proposal-private-fields/blob/master/FAQ.md#why-was-the-sigil--chosen-among-all-the-unicode-code-points
https://github.com/styfle
Steven (styfle)https://github.com/styfle
on Jun 20, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-309774774
Daniel Ehrenberg (@littledan)https://github.com/littledan
proposal-private-fieldshttps://github.com/tc39/proposal-private-fields
proposal-class-fieldshttps://github.com/tc39/proposal-class-fields#private-fields
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310033728
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310037312
mihailikhttps://github.com/mihailik
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310037900
(play with it on CodePen)https://codepen.io/anon/pen/eRWbeB?editors=0012
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310038367
Ron Buckton (@rbuckton)https://github.com/rbuckton
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310039021
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310039980
(again, CodePen to try)https://codepen.io/anon/pen/owWJra?editors=0012
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310042401
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310044395
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310103826
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310110764
Daniel Ehrenberg (@littledan)https://github.com/littledan
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310113687
extensive discussion of this in the TC39 proposalhttps://github.com/tc39/proposal-private-fields/issues/14
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310116740
Kitson Kelly (@kitsonk)https://github.com/kitsonk
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Jun 21, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-310119354
https://github.com/littledan
Daniel Ehrenberg (littledan)https://github.com/littledan
on Jul 3, 2017https://github.com/microsoft/TypeScript/issues/16415#issuecomment-312719253
mihailikhttps://github.com/mihailik
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/16415#event-1682148367
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/16415
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/16415
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%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.