René's URL Explorer Experiment


Title: Design Meeting Notes, 1/18/2023 · Issue #52296 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 1/18/2023 · Issue #52296 · microsoft/TypeScript

X Title: Design Meeting Notes, 1/18/2023 · Issue #52296 · microsoft/TypeScript

Description: newLine and forceConsistentFileNames Defaults #51909 newLine to lf? Didn't get to discuss it thoroughly. Change default of forceConsistentFileNames to true? Catch issues between Windows/Mac/Linux ahead of pushing out to CI. We think it's...

Open Graph Description: newLine and forceConsistentFileNames Defaults #51909 newLine to lf? Didn't get to discuss it thoroughly. Change default of forceConsistentFileNames to true? Catch issues between Windows/Mac/Linux a...

X Description: newLine and forceConsistentFileNames Defaults #51909 newLine to lf? Didn't get to discuss it thoroughly. Change default of forceConsistentFileNames to true? Catch issues between Windows/Mac/Lin...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 1/18/2023","articleBody":"# `newLine` and `forceConsistentFileNames` Defaults\r\n\r\n#51909\r\n\r\n* `newLine` to `lf`?\r\n    * Didn't get to discuss it thoroughly.\r\n* Change default of `forceConsistentFileNames` to `true`?\r\n    * Catch issues between Windows/Mac/Linux ahead of pushing out to CI.\r\n    * We think it's good to turn on.\r\n* We all feel okay about the fact that it doesn't \"do what people think\", right?\r\n    * \"What?\"\r\n    * It doesn't check whether the paths match what's on disk, it just checks whether the paths are consistent across the project.\r\n* Deprecate it?\r\n    * Prefer not to.\r\n* Conclusion\r\n    * `--newLine lf` by default.\r\n    * `--forceConsistentFileNames true` by default.\r\n\r\n# `catch` Clause Variables\r\n\r\n#52240\r\n\r\n```ts\r\n// @useUnknownInCatchVariables: false\r\n\r\ntry {} catch ({ e }) {}\r\n//              ^?\r\n\r\ntry {} catch ({ e }: any) {}\r\n//              ^?\r\n\r\ntry {} catch ({ e }: unknown) {}\r\n//              ^?\r\n\r\n\r\ntry {} catch ({ x: { e } }) {}\r\n//                   ^?\r\n\r\ntry {} catch ({ x: { e } }: any) {}\r\n//                   ^?\r\n\r\ntry {} catch ({ x: { e } }: unknown) {}\r\n//                   ^?\r\n```\r\n\r\n* Toggle `useUnknownInCatchVariables` between `true` and `false`.\r\n* When `true`, the annotations are ignored, and destructured declarations are permitted and `unknown`.\r\n* #52240 fix this.\r\n* Breaking change, but only found buggy code under `useUnknownInCatchVariables`.\r\n    * We think this is good for 5.0.\r\n* Also: #52280 allows arbitrary type annotations on catch variables - addresses #20024.\r\n    * But we're not doing that, right?\r\n    * No, blatantly unsafe.\r\n    * Well then we should tell people that we're not doing it?\r\n        * Context matters - we think pattern matching progressing in TC39 is going to enable a safe version of this pattern.\r\n        * We want to defer to that.\r\n* Conclusion\r\n    * We're not doing #52280.\r\n    * We're doing #52240.\r\n\r\n# Comparison Operators\r\n\r\nhttps://github.com/microsoft/TypeScript/issues/52036\r\nhttps://github.com/microsoft/TypeScript/pull/52048\r\n\r\n* Some obvious but questionable things that popped up.\r\n    * `Number \u003c number` now disallowed\r\n    * `string | number \u003c number` now disallowed\r\n    * `unknown \u003c number` now disallowed\r\n* Some stuff that fails due to control flow limitations across functions.\r\n* What about objects that coerce to `number` (e.g. `Date`)?\r\n    * Why don't we look at `valueOf`?\r\n        * Or `[Symbol.toPrimitive]`?\r\n        * Here we go...\r\n* Conclusion: Feels like this PR is a good start. Want to bring this in for 5.0.\r\n    * Watch for 5.0 Beta feedback.\r\n\r\n# `JSON.stringify`\r\n\r\n#51897\r\n#52250\r\n\r\n* This thing broke some code.\r\n* Technically `stringify` can return `undefined`.\r\n    * But technically also wrong because a `Function` can have a `toJSON` method.\r\n* There's a world where we could possibly keep this as-is if we reordered the signatures so that `never` works.\r\n    * Overload resolution goes through a subtype pass.\r\n* But why are we adding this overload? Who ends up in a situation like this?\r\n    * Doesn't even catch mistakes like `(() =\u003e string) | string` today.\r\n    * Only contrived cases are caught.\r\n* The idea that everyone has to suffer for `stringify` because of these contrived-but-uncommon cases feels unreasonable.\r\n* Could ship an open-ended union?\r\n* Could also just tell people to interface-merge.\r\n* Conclusion:\r\n    * Revert this, tell people to interface-merge on `JSON` with something that returns `undefined`.\r\n\r\n# Picking Between Types from Type Predicates and Original Types\r\n\r\n#50916\r\n\r\n* Made a change a while back to pick the types from type predicates/type assertions.\r\n* Similar behavior with `instanceof` too.\r\n* Means that the original type does not survive at joining points of CFA.\r\n* Idea\r\n    * In the true branch, we will still prefer the type predicate type.\r\n    * In the false branch, we will now *preserve* the original type so that they join back at a CFA merge node.\r\n* So what do we now do about mutual subtypes?\r\n    * For example, `unknown` and `any` are mutual subtypes.\r\n    * Today we choose the type with the lowest ID.\r\n    * Pretty unfortunate - these have measurable effects.\r\n    * So we are making `any` a *strict supertype* of `unknown`.\r\n        * Behavior directly in unions is the same.\r\n        * Where else does this appear?\r\n            * When the type IDs are not compared directly.\r\n            * So for e.g. `Array\u003cany\u003e` vs. `Array\u003cunknown\u003e` - but `Array` is not special.\r\n\r\n              ```ts\r\n              type Box\u003cT\u003e = { readonly value: T };\r\n\r\n              declare let anyBox: Box\u003cany\u003e;\r\n              declare let unknownBox: Box\u003cunknown\u003e;\r\n\r\n              let boxes1 = [anyBox, unknownBox];\r\n              //  ^?\r\n              let boxes2 = [unknownBox, anyBox];\r\n              //  ^?\r\n              ```\r\n            * Now you always end up with `Box\u003cany\u003e[]`.\r\n    * Similar constraints with `{}` and any non-empty object type.\r\n* What other effects does this have?\r\n    * The type of an assignment expression is always the right side:\r\n\r\n      ```ts\r\n      function f(obj: { a?: string }) {\r\n          (obj = {}).a; // allowed?\r\n      }\r\n      ```\r\n\r\n    * Hmm...\r\n\r\n      ```ts\r\n      function f(a: { x?: number }, b: { x?: string}) {\r\n          a = b = {}; // allowed?\r\n          // Equivalent to `a = (b = {})` which naively looks like `b = {}; a = {}` from a type perspective.\r\n\r\n          a.x = 42;\r\n\r\n          b.x?.toUpperCase();\r\n      }\r\n      ```\r\n        * Fresh `{}` object type has \"inverted\" subtype behavior.\r\n            * It is, but on the assignment we widen.\r\n            * Do we have to widen? Could choose not to.\r\n            * Feels like for the `b = {}`, we have to propagate out some information, or further narrow based on the left side(?)\r\n    * `(...args: any[]) =\u003e any` should be a super-type of all functions?\r\n        * But what about `(...args: never[]) =\u003e unknown`?\r\n            * Not specially understood today by TS internals.\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2023-01-18T23:19:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/52296/TypeScript/issues/52296"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0b1e4d00-8939-ead0-dfb4-26ade013ddf0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD74:1723F3:615774:83D564:6A627C3E
html-safe-nonce8bc08b525f361f4679ba302a852461d721d07c175d7e4c6754fce11a8a842866
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDc0OjE3MjNGMzo2MTU3NzQ6ODNENTY0OjZBNjI3QzNFIiwidmlzaXRvcl9pZCI6IjE4NzY3MjY2MTc5MzI0NjMxNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbc494fa73230872a3aa994b75d13a10b91fc7c980b4093794b9677ae5a6a0513
hovercard-subject-tagissue:1548267332
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/52296/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cf272ba446507e8b07ff7ae99be1701286b86abb1dc8ae9928f3e5e5dc91a1c3/microsoft/TypeScript/issues/52296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf272ba446507e8b07ff7ae99be1701286b86abb1dc8ae9928f3e5e5dc91a1c3/microsoft/TypeScript/issues/52296
og:image:altnewLine and forceConsistentFileNames Defaults #51909 newLine to lf? Didn't get to discuss it thoroughly. Change default of forceConsistentFileNames to true? Catch issues between Windows/Mac/Linux a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
None838e87bd0e4f5415707a930bc14e89e382dc2ea046e50ff575252eb2f2cb06a2
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
releasef0081192f88523d2bf4cfdf22bb3e138affc4cd1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/52296#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F52296
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%2F52296
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/52296
Reloadhttps://github.com/microsoft/TypeScript/issues/52296
Reloadhttps://github.com/microsoft/TypeScript/issues/52296
Please reload this pagehttps://github.com/microsoft/TypeScript/issues/52296
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, 1/18/2023https://github.com/microsoft/TypeScript/issues/52296#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 Jan 18, 2023https://github.com/microsoft/TypeScript/issues/52296#issue-1548267332
#51909https://github.com/microsoft/TypeScript/issues/51909
#52240https://github.com/microsoft/TypeScript/pull/52240
Make catch clause checking consistent with variable declarations #52240https://github.com/microsoft/TypeScript/pull/52240
Allow arbitrary catch clause type annotations #52280https://github.com/microsoft/TypeScript/pull/52280
Allow type annotation on catch clause variable #20024https://github.com/microsoft/TypeScript/issues/20024
Allow arbitrary catch clause type annotations #52280https://github.com/microsoft/TypeScript/pull/52280
Make catch clause checking consistent with variable declarations #52240https://github.com/microsoft/TypeScript/pull/52240
#52036https://github.com/microsoft/TypeScript/issues/52036
#52048https://github.com/microsoft/TypeScript/pull/52048
#51897https://github.com/microsoft/TypeScript/pull/51897
#52250https://github.com/microsoft/TypeScript/issues/52250
#50916https://github.com/microsoft/TypeScript/issues/50916
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.