René's URL Explorer Experiment


Title: Design Meeting Notes, 2/16/2018 · Issue #22011 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 2/16/2018 · Issue #22011 · microsoft/TypeScript

X Title: Design Meeting Notes, 2/16/2018 · Issue #22011 · microsoft/TypeScript

Description: Recursive Conditional Types #21316 (comment) @tycho01 already reiterated we have recursive conditional types with indexed access types on object types (#21613 (comment)) Well damn it, if you can already do it with object types, why make ...

Open Graph Description: Recursive Conditional Types #21316 (comment) @tycho01 already reiterated we have recursive conditional types with indexed access types on object types (#21613 (comment)) Well damn it, if you can al...

X Description: Recursive Conditional Types #21316 (comment) @tycho01 already reiterated we have recursive conditional types with indexed access types on object types (#21613 (comment)) Well damn it, if you can al...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 2/16/2018","articleBody":"# Recursive Conditional Types\r\n\r\nhttps://github.com/Microsoft/TypeScript/pull/21316#issuecomment-359275993\r\n\r\n* @tycho01 already reiterated we have recursive conditional types with indexed access types on object types (https://github.com/Microsoft/TypeScript/pull/21613#issuecomment-365774702)\r\n    * Well damn it, if you can already do it with object types, why make it ugly to do with regular conditional types?\r\n* Conditional types contain 4 types\r\n    * The checked type, the extends type, the true type, and the false type\r\n    * When the condition is *definitely* true or false, we do an immediate instantiation (/evaluation) of the respective branch\r\n    * Those branches are already sort of deferral points, much like the object member types.\r\n    * If an conditional type is instantiated over 100 times, we consider that to be too deep.\r\n        * At that point, we try to find the respective alias type that contains that conditional type.\r\n* *\\[\\[Demonstration of Peano-style arithmetic with multiplication]]*\r\n* Challenges\r\n    1. The \"we've instantiated too deeply\" error is issued on the declaration instead of the usage, which is not totally obvious.\r\n    2. The act of checking whether a type satisfies a constraint in a conditional type (e.g. seeing if `A` is assignable to `B` in `A extends B`) requires evaluating `A`.\r\n        * That means if `A` is a conditional type, either branch needs to be evaluated immediately to see if it satisfies `B`. That means you can end up exhausting your instantiation stack.\r\n* Question: Why not defer the type when comparing a conditional to the constraint type.\r\n    * doesn't make sense, you need to check *now*\r\n        * you could imagine that our compiler architecture was more deferred, but that would make it much harder to reason about.\r\n* Question: *or*, when you hit the limit, stop evaluating once you hit the limit and defer the evaluation?\r\n* Also, this instantiation stack limit is quite annoying: you can get errors on unrelated type aliases.\r\n    * What if your stack is tied per type instantiation?\r\n    * Or rather than per type, you use the global stack but check specific types in that stack.\r\n* Conclusion: give users an error in these situations, try to improve the message.\r\n\r\n# Ignore specific errors with `@ts-ignore` comments\r\n\r\nIssue: #19139\r\nPR: #21602\r\n\r\n* Given the error code, what are you actually suppressing?\r\n    * Seems entirely unclear.\r\n    * Error codes don't tell you what you're doing\r\n        * Short-names are better than numbers.\r\n* So short names?\r\n    * But this gives a bad UX; way more on the screen than you wanted.\r\n    * Also, people are *probably* relying on the error codes even though they shouldn't be!!\r\n    * What if we gave short codes in `--pretty`?\r\n* Could give quick info for the error code.\r\n    * Great but how does that help you on a code review on GitHub?\r\n        * Why, do you inherently distrust the code you're reviewing?\r\n            * Sometimes yes?\r\n* A lot of these are to suppress lint rules.\r\n    * Maybe the solution is just to get out of the linting business. :)\r\n* What if these comments caused errors when no error's present on the next line?\r\n    * We might feel better about that.\r\n        * Half jokingly: Can you suppress *those* errors?\r\n            * Now the idea has become a half-joke.\r\n* Conclusion: no conclusion *yet*.\r\n* Post-design meeting realization: original motivation was mass suppression for working code.\r\n    * Seems more reasonable with that in mind.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2018-02-17T07:43:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/22011/TypeScript/issues/22011"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3d2f9af6-c563-9d71-60a9-2ebb6311a529
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D5A:1893D6:5E3EDC:7EFEED:6A62D9FC
html-safe-nonce94142b21938d35657b9e3b2eaa21d2bd77571c0857f0a33e7b2753813b43faa6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDVBOjE4OTNENjo1RTNFREM6N0VGRUVEOjZBNjJEOUZDIiwidmlzaXRvcl9pZCI6IjI2ODExODc4MTc5NzMwMTI5ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3ee7cbdbc6e1716c6a717d820b91cc668be4ac482d1f47acd172b03a64d03318
hovercard-subject-tagissue:297987197
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/22011/issue_layout
twitter:imagehttps://opengraph.githubassets.com/87679524934d9c44c7b18de9e334b1fb0dd925f15159fb56adb14b7d325d98ab/microsoft/TypeScript/issues/22011
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/87679524934d9c44c7b18de9e334b1fb0dd925f15159fb56adb14b7d325d98ab/microsoft/TypeScript/issues/22011
og:image:altRecursive Conditional Types #21316 (comment) @tycho01 already reiterated we have recursive conditional types with indexed access types on object types (#21613 (comment)) Well damn it, if you can al...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
Nonedf33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd
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
released41cd1bdb290013455c0ac430fa755621733f5eb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/22011#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F22011
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F22011
Sign up https://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/22011
Reloadhttps://github.com/microsoft/TypeScript/issues/22011
Reloadhttps://github.com/microsoft/TypeScript/issues/22011
Please reload this pagehttps://github.com/microsoft/TypeScript/issues/22011
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 21 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Design Meeting Notes, 2/16/2018https://github.com/microsoft/TypeScript/issues/22011#top
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
on Feb 17, 2018https://github.com/microsoft/TypeScript/issues/22011#issue-297987197
#21316 (comment)https://github.com/microsoft/TypeScript/pull/21316#issuecomment-359275993
Add Awaited to core library #21613 (comment)https://github.com/microsoft/TypeScript/pull/21613#issuecomment-365774702
#19139https://github.com/microsoft/TypeScript/issues/19139
#21602https://github.com/microsoft/TypeScript/pull/21602
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.