René's URL Explorer Experiment


Title: Design Meeting Notes, 9/8/2017 · Issue #18339 · microsoft/TypeScript · GitHub

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

X Title: Design Meeting Notes, 9/8/2017 · Issue #18339 · microsoft/TypeScript

Description: Reduce vacuous intersections When we talk about unions and intersections we are talking about domains - sets which contain a number of values. Specifically, when you have an intersection, you have a type that describes values that occupy...

Open Graph Description: Reduce vacuous intersections When we talk about unions and intersections we are talking about domains - sets which contain a number of values. Specifically, when you have an intersection, you have ...

X Description: Reduce vacuous intersections When we talk about unions and intersections we are talking about domains - sets which contain a number of values. Specifically, when you have an intersection, you have ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 9/8/2017","articleBody":"# Reduce vacuous intersections\r\n\r\n* When we talk about unions and intersections we are talking about domains - sets which contain a number of values.\r\n* Specifically, when you have an intersection, you have a type that describes values that occupy each constituent of the intersection.\r\n* However, for certain sets of types that are completely disjoint, you have a completely empty domain of values.\r\n* And the type that describes the set of no values is simply `never`.\r\n* So for certain types (e.g. `number & string` or `\"foo\" & \"bar\"`), it makes sense to collapse them down to `never`.\r\n* There's some strange behavior that might come about from this:\r\n  ```ts\r\n  var s: string;\r\n  var x: string & number; // does the quick info here become 'never'? The user didn't write that.\r\n  var b: boolean = x;     // you can also assign to anything all of a sudden\r\n                          // even though 'string & number' doesn't contain 'boolean'\r\n  ```\r\n* We also get quite large slowdowns - @weswigham's experimental branch of discriminated union nodes takes *minutes* to compile.\r\n* So maybe we don't want to go all the way there. But for unit types, we certainly care.\r\n* Current behavior in the compiler:\r\n\r\n  ```ts\r\n  type ABC = \"A\" | \"B\" | \"C\";\r\n  type BCD = \"B\" | \"C\" | \"D\";\r\n  type X = ABC & BCD;\r\n  // Becomes...\r\n  //     | \"B\" | \"C\" | (\"A\" & \"D\") | (\"A\" & \"B\") |\r\n  //     | (\"A\" & \"C\") | (\"B\" & \"D\") | (\"B\" & \"C\")\r\n  //     | (\"C\" & \"D\") | (\"C\" & \"B\")\r\n  ```\r\n* What about objects with properties that collapse to `never`?\r\n    * Technically, `Circle & Square` (where each has a discriminated unit-typed property) should become `never` since the `kind` or `type` or whatever discriminating field will become `never` as well.\r\n        * Problem is that turning this into `never` becomes sort of opaque - no clue to the user how they got there.\r\n        * Also can't diagnose the properties, though arguably you should be able to get properties off of a value of type `never`.\r\n* Idea: current implementation just removes these vacuous unit intersection types when constructing unions.\r\n    * Means they'll get removed from explicit unions, but you can have a single intersection (outside of a union) that is a vacuous intersection of ujnit types.\r\n\r\n* Related issue: https://github.com/Microsoft/TypeScript/issues/18210\r\n    * Maybe revisit next week.\r\n    * Current idea is stitching nullability back on after the fact.\r\n\r\n# Export assignment\r\n\r\nhttps://github.com/Microsoft/TypeScript/issues/17991\r\nhttps://github.com/Microsoft/TypeScript/issues/16769\r\n\r\n* What do you think this code does?\r\n\r\n  ```ts\r\n  declare module \"*.vue\" {\r\n    import Vue from 'vue'\r\n    export default typeof Vue\r\n  }\r\n  ```\r\n\r\n* You're probably wrong.\r\n* A: ˙ǝdʎʇ ,ƃuᴉɹʇs, ǝɥʇ s,ʇI\r\n\r\n* Ideas\r\n    * We should disallow expressions in ambient contexts.\r\n    * Or ensure these ambiguous entities are parsed appropriately.\r\n* What about `export default class`?\r\n    * Will be different, `default` is treated as a modifier here?\r\n\r\n## Revision to tagged template string emit\r\n\r\nhttps://github.com/Microsoft/TypeScript/pull/18300\r\n\r\n- We originally opted into a simple implementation\r\n  - the simplest solution was to recreate the array\r\n  - leaves the code clean\r\n- frameworks like lit-html take a dependency on the identity of the template, obviously our current behavior beaks them\r\n\r\nemit options:\r\n- cache globally to match the current spec\r\n  - the spec is actually going to change, there is an issue on TC39 to only make that unique per template\r\n- defer the use until \r\n\r\n- what about variable names, could collide in cases of global scripts\r\n  - in global scripts, revert back to old behavior\r\n     - this would be confusing to users to have different semantics based on the context\r\n  - is not that the same as destructuring?\r\n     - destructuring only uses the variable for a short while during initialization, but templates has higher chance of conflicts\r\n  - make names unique, either use some hash of the contents, or the template location\r\n  - @danielRosenwasser to figure this one out.\r\n\r\n# Merge contextual types from overloads\r\n\r\nhttps://github.com/Microsoft/TypeScript/pull/17819\r\n\r\n* Currently if a function is contextually typed by a type with multiple signatures (e.g. overloads), we \"give up\" and go to 'any'.\r\n    * Comes up in JSX where `props` has a specific `refs` type or when another type extends another component.\r\n\r\nOut of time","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2017-09-08T19:59:59Z","url":"https://github.com/microsoft/TypeScript/issues/18339"}

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:dcdc1555-ff10-2d79-031e-be4fa5063c60
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id91A2:31D532:3A7788:4D2E9F:6B019411
html-safe-nonceabb5a5fafca3aa36f61ea9308efd5c64282c2aaf0075d815b89f263cdc6637f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUEyOjMxRDUzMjozQTc3ODg6NEQyRTlGOjZCMDE5NDExIiwidmlzaXRvcl9pZCI6IjYzNTg2NjM4OTkxNTExNzY3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac436f393c575521c8518d4038ff7e64b12e6fda357051ce5e77f7f6c3ec8c36d0
hovercard-subject-tagissue:256356481
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/18339/issue_layout
twitter:imagehttps://opengraph.githubassets.com/81751013128fb9e80853557fa3bd9cc890a8e66a25af0f3050084885fd80facd/microsoft/TypeScript/issues/18339
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/81751013128fb9e80853557fa3bd9cc890a8e66a25af0f3050084885fd80facd/microsoft/TypeScript/issues/18339
og:image:altReduce vacuous intersections When we talk about unions and intersections we are talking about domains - sets which contain a number of values. Specifically, when you have an intersection, you have ...
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/18339#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F18339
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%2F18339
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/18339
Reloadhttps://github.com/microsoft/TypeScript/issues/18339
Reloadhttps://github.com/microsoft/TypeScript/issues/18339
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/18339
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/18339
Design Meeting Notes, 9/8/2017https://github.com/microsoft/TypeScript/issues/18339#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 Sep 8, 2017https://github.com/microsoft/TypeScript/issues/18339#issue-256356481
Wesley Wigham (@weswigham)https://github.com/weswigham
Reduce empty intersections to never #18210https://github.com/microsoft/TypeScript/issues/18210
#17991https://github.com/microsoft/TypeScript/issues/17991
#16769https://github.com/microsoft/TypeScript/issues/16769
#18300https://github.com/microsoft/TypeScript/pull/18300
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
#17819https://github.com/microsoft/TypeScript/pull/17819
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 Sep 8, 2017https://github.com/microsoft/TypeScript/issues/18339#event-1241417215
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 8, 2017https://github.com/microsoft/TypeScript/issues/18339#event-1241417824
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Sep 25, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-331975674
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
#4183https://github.com/microsoft/TypeScript/issues/4183
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Sep 29, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333193236
Playground sample belowhttp://www.typescriptlang.org/play/#src=type%20Circle%20%3D%20{%20radius%3A%20number%20}%3B%0D%0Atype%20Square%20%3D%20{%20side%3A%20number%20}%3B%0D%0Avar%20c%3A%20Circle%20%26%20Square%3B%0D%0Ac.%20|%20%3C--%20ctrl%2Bspace
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Sep 29, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333194883
mihailikhttps://github.com/mihailik
this questionhttps://stackoverflow.com/q/39906054/1726343
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Sep 29, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333199824
Asad Saeeduddin (@masaeedu)https://github.com/masaeedu
the StackOverflow questionhttps://stackoverflow.com/questions/39906054/typescript-object-assign-confusion
Playground linkhttp://www.typescriptlang.org/play/#src=interface%20Thing%20{%0D%0A%20%20%20%20name%3A%20string%3B%0D%0A%20%20%20%20age%3A%20HTMLElement%3B%0D%0A}%0D%0Avar%20oldThing%3A%20Thing%3B%0D%0A%0D%0Alet%20newThing%3A%20Thing%20%3D%20Object.assign%28{}%2C%20oldThing%2C%20{%0D%0A%20%20%20%20age%3A%20XMLHttpRequest%0D%0A}%29%3B%0D%0A
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 2, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333698216
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333778197
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Playground linkhttp://www.typescriptlang.org/play/#src=type%20A%20%3D%200%20%7C%201%3B%0D%0Atype%20B%20%3D%202%20%7C%203%3B%0D%0A%0D%0A%2F%2F%20.%20.%20.%20much%20later%20in%20different%20area%20of%20code%0D%0A%0D%0Avar%20quirk%3A%20A%20%26%20B%3B%0D%0Aquirk%20%3D%201%3B
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333915149
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333921164
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333931552
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333937975
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333940875
Asad Saeeduddin (@masaeedu)https://github.com/masaeedu
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333941920
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333944473
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333944840
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333946392
mihailikhttps://github.com/mihailik
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333948799
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333951045
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333955203
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333966154
Asad Saeeduddin (@masaeedu)https://github.com/masaeedu
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333971041
mihailikhttps://github.com/mihailik
https://github.com/mihailik
mihailikhttps://github.com/mihailik
on Oct 3, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333972678
#18339 (comment)https://github.com/microsoft/TypeScript/issues/18339#issuecomment-333948799
https://github.com/masaeedu
Asad Saeeduddin (masaeedu)https://github.com/masaeedu
on Nov 13, 2017https://github.com/microsoft/TypeScript/issues/18339#issuecomment-343997833
mihailikhttps://github.com/mihailik
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/18339#event-1682129743
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/18339
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/18339
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.