René's URL Explorer Experiment


Title: Design Meeting Notes, 6/18/2020 · Issue #39154 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 6/18/2020 · Issue #39154 · microsoft/TypeScript

X Title: Design Meeting Notes, 6/18/2020 · Issue #39154 · microsoft/TypeScript

Description: Variadic Tuples #39094 Added the ability to add a "cut point" to inference to accurately describe curry. function curry( f: (...args: [...T, ...U]) => R, ...a: T ) This is complicated! Why? Yo...

Open Graph Description: Variadic Tuples #39094 Added the ability to add a "cut point" to inference to accurately describe curry. function curry( f: (...args: [...T, ...U]) => R...

X Description: Variadic Tuples #39094 Added the ability to add a "cut point" to inference to accurately describe curry. function curry<T extends unknown[], U extends unknown[], R>( f: (...args: [....

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 6/18/2020","articleBody":"# Variadic Tuples\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/39094\r\n\r\nAdded the ability to add a \"cut point\" to inference to accurately describe `curry`.\r\n\r\n```ts\r\nfunction curry\u003cT extends unknown[], U extends unknown[], R>(\r\n    f: (...args: [...T, ...U]) => R,\r\n    ...a: T\r\n)\r\n```\r\n\r\nThis is complicated! Why?\r\n\r\n* You want to get the count from `...a` to know how much to cut off from [...T, ...U]`\r\n* You want `...a` to be contextually typed by whatever it could be inferred from `...args`\r\n* So we now try to build up a concept of \"implied arity\" from these positions during the inference process.\r\n\r\nThere are some limitations around inference in certain more complex cases.\r\n\r\n```ts\r\nfunction independent\u003cT extends unknown[], R>(\r\n    ...args: [...T, (...a: T) => R]\r\n): [T, R];\r\n```\r\n\r\nWorks well for\r\n\r\n```ts\r\n[fixed-part, ...rest-part]\r\n```\r\n\r\nbut not\r\n\r\n```ts\r\n[starting-fixed-part, ...rest-part, ending-fixed-part]\r\n[...rest-part, fixed-part]\r\n```\r\n\r\nbut...we think we could! Then we could model\r\n\r\n```ts\r\ndeclare const foo: string[];\r\n\r\nindependent(...foo, (...args) => hello)\r\n```\r\n\r\n* What about `pipe`?\r\n    * Common, but is very complicated to type without pyramids of overloads.\r\n    * There's also compose which is more right to left, which we couldn't do.\r\n    * Wasn't within scope for this PR.\r\n    * Maybe potential in the future, but also, maybe `|>` is the better solution.\r\n* We had some questions about applying mapped type transformations across different places.\r\n    * Turns out that we don't encode the right information to say that when constrained to a union of array/tuple types, a homomorphic mapped type will also be array/tuple-like.\r\n    * Instead, we just assume that the thing is more plain object-like than array-like.\r\n        * Basically the same as behavior of mapped types on arrays before they were special-cased in around TS2.9ish.\r\n\r\n# Spreading `anyTypeExpr && otherExpr` into Objects\r\n\r\nhttps://github.com/microsoft/TypeScript/issues/39113\r\n\r\n```ts\r\nfunction fn(x: unknown) {\r\n    const res = {\r\n        // uh oh!\r\n        // 'prop' is specified more than once, so this usage will be overwritten.\r\n        prop: 100,\r\n        // This spread always overwrites this property.\r\n        ...(x && { prop: 200 }),\r\n    };\r\n}\r\n```\r\n\r\nStrange:\r\n\r\n```ts\r\nlet x: string = (false as unknown) && \"hello\"; // okay\r\nlet y: string = (0 as number) && \"hello\"; // error\r\n```\r\n\r\nConclusion: Try changing this behavior and see what breaks, but it sounds very breaky.\r\n\r\n# Switch to ES `Maps` and `Sets`\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/33771\r\n\r\n* Internally we have a `Map` type, have logic that uses the native ES `Map` type if available.\r\n* But the problem is, because our polyfill only worked on `string`s keys, our `Map` was limited like that all-around.\r\n* Will switch to having `K, V`.\r\n* `WeakMap`?\r\n    * Not if we can help it, avoid using in compiler.\r\n* What about breaking change?\r\n    * Very esoteric use-sites in our API.\r\n* Conclusion: Try the change in beta, work with build tool authors to see impact.\r\n\r\n______\r\n\r\nOut of time\r\n\r\n# Base tsconfigs\r\n\r\nhttps://github.com/tsconfig/bases/pull/15\r\n\r\n# Abstract Constructor Types\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/36392","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2020-06-18T21:59:01Z","url":"https://github.com/microsoft/TypeScript/issues/39154"}

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:60f11247-66b8-7f70-1cb2-a246f6f4868f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB9F6:34DB8F:1A90401:2376EDC:6B016092
html-safe-noncea9153545ea0f3e30f9b58d3f88e8ff2d367368f518c0cb5c3c94a52502a1ab3f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUY2OjM0REI4RjoxQTkwNDAxOjIzNzZFREM6NkIwMTYwOTIiLCJ2aXNpdG9yX2lkIjoiMTEzNDQ5MzAwODYyMDc3MzUyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc3a0c4569d4bc2f5b030dfea20482d44ae1d84b43a14624f12ed2599d8e152d7
hovercard-subject-tagissue:641573967
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/39154/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8bb24f7092f200aca75684a8829741b258ad17a8b7878e4a4c818f5af9362923/microsoft/TypeScript/issues/39154
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8bb24f7092f200aca75684a8829741b258ad17a8b7878e4a4c818f5af9362923/microsoft/TypeScript/issues/39154
og:image:altVariadic Tuples #39094 Added the ability to add a "cut point" to inference to accurately describe curry. function curry( f: (...args: [...T, ...U]) => R...
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/39154#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F39154
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%2F39154
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/39154
Reloadhttps://github.com/microsoft/TypeScript/issues/39154
Reloadhttps://github.com/microsoft/TypeScript/issues/39154
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/39154
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/39154
Design Meeting Notes, 6/18/2020https://github.com/microsoft/TypeScript/issues/39154#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 18, 2020https://github.com/microsoft/TypeScript/issues/39154#issue-641573967
#39094https://github.com/microsoft/TypeScript/pull/39094
#39113https://github.com/microsoft/TypeScript/issues/39113
#33771https://github.com/microsoft/TypeScript/pull/33771
tsconfig/bases#15https://github.com/tsconfig/bases/pull/15
#36392https://github.com/microsoft/TypeScript/pull/36392
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 18, 2020https://github.com/microsoft/TypeScript/issues/39154#event-3460209727
https://github.com/awerlogus
Michael Borislav (awerlogus)https://github.com/awerlogus
on Jun 21, 2020https://github.com/microsoft/TypeScript/issues/39154#issuecomment-647059561
#38182https://github.com/microsoft/TypeScript/issues/38182
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 17, 2020https://github.com/microsoft/TypeScript/issues/39154#event-3560014063
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/39154
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/39154
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.