Title: Design Meeting Notes, 8/17/2018 · Issue #26518 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 8/17/2018 · Issue #26518 · microsoft/TypeScript
X Title: Design Meeting Notes, 8/17/2018 · Issue #26518 · microsoft/TypeScript
Description: #25826 Inference of pipe-like functions No obvious solution that doesn't break other stuff The only real fix would be full unification #25942 OOM crash or non-ending computations Can we limit ourselves in some way to prevent OOMs? We cou...
Open Graph Description: #25826 Inference of pipe-like functions No obvious solution that doesn't break other stuff The only real fix would be full unification #25942 OOM crash or non-ending computations Can we limit ourse...
X Description: #25826 Inference of pipe-like functions No obvious solution that doesn't break other stuff The only real fix would be full unification #25942 OOM crash or non-ending computations Can we limit o...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/26518
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 8/17/2018","articleBody":"* #25826 Inference of `pipe`-like functions\r\n * No obvious solution that doesn't break other stuff\r\n * The only real fix would be full unification\r\n* #25942 OOM crash or non-ending computations\r\n * Can we limit ourselves in some way to prevent OOMs?\r\n * We could make `createType` fail, but it's not clear what to do afterwards\r\n * The type here is not particularly deep, just wide\r\n * No obvious problem is detectable during checking\r\n * See also #26314\r\n * What useful thing could we do if we detected we were about to OOM?\r\n * Throw?\r\n * Try to \"stop\" checking?\r\n * Throw a special exception to disable the LS\r\n * What about hangs?\r\n * Would need VS / VS Code to support some kind of detection\r\n * Keep trying to find a solution\r\n* Partial type argument specification and named type arguments (#26349)\r\n * How does the call site specify the inference positions?\r\n * Difficulty is that default type parameters exist\r\n * We need some placeholder\r\n * Big breaking change to switch nonspecified parameters to inference\r\n * Presume you have `Foo\u003cA, B, C = string>`, then `Foo\u003cT, U>` is *different* from `Foo\u003cT, U, >`\r\n * Gross\r\n * Not much consensus for `*` or `auto` or `infer`\r\n * What about inferring only when no default exists?\r\n * More subtlety\r\n * OK maybe `*` is the best\r\n * What's the use case?\r\n * Vue\r\n * Why aren't Vue's type parameters in the \"right\" order?\r\n * One person made a mistake and now we're stuck with it!\r\n * :+1: for `*`\r\n * Semantics are good to go\r\n* Fallout from #26405 Narrowing mapped types\r\n * \"Is maybe assignable to\" is almost the same as \"Is comparable to\"\r\n * Break in RWC in `T | T[]` with `T` = `{ x?: string }`\r\n * Kinda wat because `T[]` *is* also `T` for weak `T`\r\n * Control flow is based on removal of constituents of unions\r\n * It's \"incorrect\" to remove `T` from `T | T[]` in the `AOrArr\u003cT>` example\r\n * Remember that weak types are comparable to but not assignable to most target types\r\n * Would we rather have #26130 or #26405?\r\n * #26130 - not a regression, but weird\r\n * `T | T[]` with weak `T` is suspect but not uncommon\r\n * (Debate about *why* #26130 happens)\r\n * Don't add a new type relation yet - high perf cost and new subtleties\r\n * Roll back the fix for now and try to think of other fixes\r\n* #26468 `&&` in non-SNC\r\n * The rules are ancient and also bad\r\n * Right operand is a good answer for non-primitive LHSes in non-SNC but bad for primitives\r\n * Fun breaking change\r\n * Isn't all of this code extremely suspect?\r\n * See what's in RWC\r\n * Everyone should turn on SNC!\r\n * No urgency\r\n* #26281 for next week along with Nathan's inference-based refactors\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2018-08-17T20:00:03Z","url":"https://github.com/microsoft/TypeScript/issues/26518"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4965add9-e124-134e-1fa0-a7b5160d4497 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED46:117C62:24F9344:31599E0:6B01A220 |
| html-safe-nonce | 3c8503c7efc692551f37dfb3aa718978c91f2d412a19ec3ff1d0076c1bfe4389 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDQ2OjExN0M2MjoyNEY5MzQ0OjMxNTk5RTA6NkIwMUEyMjAiLCJ2aXNpdG9yX2lkIjoiNDgwMzA0MTM4NjA4MzQ5MjM4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bb5719850066e3fafe4cfe0119dbfea9ed3ddb88546e5b8ef0e7289a1cd4983 |
| hovercard-subject-tag | issue:351720670 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/26518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e249026b195222be74267817595b3982e5d651e295472ffe620f5ac57a346222/microsoft/TypeScript/issues/26518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e249026b195222be74267817595b3982e5d651e295472ffe620f5ac57a346222/microsoft/TypeScript/issues/26518 |
| og:image:alt | #25826 Inference of pipe-like functions No obvious solution that doesn't break other stuff The only real fix would be full unification #25942 OOM crash or non-ending computations Can we limit ourse... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width