René's URL Explorer Experiment


Title: Design Meeting Notes, 12/1/2017 · Issue #20398 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 12/1/2017 · Issue #20398 · microsoft/TypeScript

X Title: Design Meeting Notes, 12/1/2017 · Issue #20398 · microsoft/TypeScript

Description: Partial generic type arguments #10571 Partial inference for generic type arguments Today we either infer all or none Gets a little bit confusing for defaults Today, if you have a parameter list like in f(x: T, y: U, z: V...

Open Graph Description: Partial generic type arguments #10571 Partial inference for generic type arguments Today we either infer all or none Gets a little bit confusing for defaults Today, if you have a parameter list lik...

X Description: Partial generic type arguments #10571 Partial inference for generic type arguments Today we either infer all or none Gets a little bit confusing for defaults Today, if you have a parameter list lik...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 12/1/2017","articleBody":"# Partial generic type arguments\r\n\r\n#10571\r\n\r\n* Partial inference for generic type arguments\r\n    * Today we either infer all or none\r\n* Gets a little bit confusing for defaults\r\n    * [Today](http://www.typescriptlang.org/play/index.html#src=declare%20function%20f%3CT%2C%20U%2C%20V%20%3D%20never%3E(x%3A%20T%2C%20y%3A%20U%2C%20z%3A%20V)%3A%20void%3B%0D%0A%0D%0Af%3Cstring%2C%20boolean%3E(%22%22%2C%20true%2C%20100)), if you have a parameter list like in `f\u003cT, U, V = never>(x: T, y: U, z: V): void`, a type argument list like in `f\u003cstring, boolean>(\"\", true, 100)` will infer `never` for `V` and cause an error.\r\n        * `Argument of type '100' is not assignable to parameter of type 'never'.`\r\n* This would technically be a breaking change.\r\n    * But might be hard to actually encounter.\r\n    * Though, type parameter defaults with `any` might be a case.\r\n* So idea: always do inference, and maybe do an optimization when all type parameters are \"fixed\".\r\n* Should you be able to mix positional/named?\r\n    * Either\r\n        * Only positional & only named\r\n        * Positional followed by named\r\n\r\n#19205\r\n\r\n* Comes up with Vue's `\u003cData, Computed, Methods, PropNames>`\r\n    * Want to be able to add `Props`, but it comes last.\r\n    * Even if it didn't come last, people want to be able to specify these.\r\n        * By the time you have 5 type arguments, you really won't be able to reason these.\r\n* Do we want to do this even if associated types might be another option?\r\n    * Seems like we could still do this and tackle associated types later.\r\n* Syntax\r\n    * Technically an invalid left-hand side, should be fine.\r\n\r\n## Conclusions\r\n\r\n* Partial inference\r\n    * Do it, infer in place of default arguments, and continue to use the default when no inferences are available.\r\n* Named type parameters\r\n    * Positional followed by named\r\n\r\n# Extracting returned/constructed types\r\n\r\n#6606\r\n#20350\r\n\r\n* Undergoing overload resolution is problematic.\r\n    * Implementation is super complex and you run into several circularity problems.\r\n* Could just give the union, but what abut type parameters?\r\n* What about the \"zero-order\" problem? In other words, no overloads.\r\n    * This is one of the most common cases.\r\n* Does this solve things cases like promisify?\r\n    * No, you need variadic kinds.\r\n* Would match types take care of this?\r\n    * They wouldn't be able to decompose overloads.\r\n* What about a zero-order `typeof`?\r\n    * What does that even mean?\r\n* How's this different from `const x: typeof x`?\r\n    * We can short-circuit more easily based on the symbol thanks to the restricted forms.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2017-12-01T20:12:04Z","url":"https://github.com/microsoft/TypeScript/issues/20398"}

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:fc9b69bc-c293-f61b-3aa3-5b729923dd2e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC886:363D8E:2F78639:3C3665C:6B01ABA0
html-safe-nonce0c0abcc962d4f78b02350082897779c1fc0b90a24968ca5208dbb16f68fa76db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODg2OjM2M0Q4RToyRjc4NjM5OjNDMzY2NUM6NkIwMUFCQTAiLCJ2aXNpdG9yX2lkIjoiNDU0MDA1OTg0Mjc2NDcxMjg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7bf73441fb8c71f57b66954d89799b70be22992c37169f5d04bc97fd9135cf3c
hovercard-subject-tagissue:278582670
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/20398/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2f32bbcfb8a35fd187f6c8dea45d286290faab38449484c2fd6f20beb54beabb/microsoft/TypeScript/issues/20398
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2f32bbcfb8a35fd187f6c8dea45d286290faab38449484c2fd6f20beb54beabb/microsoft/TypeScript/issues/20398
og:image:altPartial generic type arguments #10571 Partial inference for generic type arguments Today we either infer all or none Gets a little bit confusing for defaults Today, if you have a parameter list lik...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/20398#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F20398
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%2F20398
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/20398
Reloadhttps://github.com/microsoft/TypeScript/issues/20398
Reloadhttps://github.com/microsoft/TypeScript/issues/20398
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/20398
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20398
Design Meeting Notes, 12/1/2017https://github.com/microsoft/TypeScript/issues/20398#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 Dec 1, 2017https://github.com/microsoft/TypeScript/issues/20398#issue-278582670
#10571https://github.com/microsoft/TypeScript/issues/10571
Todayhttp://www.typescriptlang.org/play/index.html#src=declare%20function%20f%3CT%2C%20U%2C%20V%20%3D%20never%3E(x%3A%20T%2C%20y%3A%20U%2C%20z%3A%20V)%3A%20void%3B%0D%0A%0D%0Af%3Cstring%2C%20boolean%3E(%22%22%2C%20true%2C%20100)
#19205https://github.com/microsoft/TypeScript/issues/19205
#6606https://github.com/microsoft/TypeScript/issues/6606
#20350https://github.com/microsoft/TypeScript/issues/20350
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 Dec 1, 2017https://github.com/microsoft/TypeScript/issues/20398#event-1368350772
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 1, 2017https://github.com/microsoft/TypeScript/issues/20398#event-1368574553
https://github.com/UselessPickles
Jeff Lau (UselessPickles)https://github.com/UselessPickles
on Dec 2, 2017https://github.com/microsoft/TypeScript/issues/20398#issuecomment-348674067
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/20398#event-1682110031
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/20398
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20398
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.