Title: Design Meeting Notes, 7/20/2018 · Issue #25939 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 7/20/2018 · Issue #25939 · microsoft/TypeScript
X Title: Design Meeting Notes, 7/20/2018 · Issue #25939 · microsoft/TypeScript
Description: Loose mode/über mode #22665 and #23906 Problem: we haven't seen as much engagement on this proposal as we've wanted. We don't want to drive this without user input. Perhaps let more people use checkJs, and drive this scenario further. Al...
Open Graph Description: Loose mode/über mode #22665 and #23906 Problem: we haven't seen as much engagement on this proposal as we've wanted. We don't want to drive this without user input. Perhaps let more people use chec...
X Description: Loose mode/über mode #22665 and #23906 Problem: we haven't seen as much engagement on this proposal as we've wanted. We don't want to drive this without user input. Perhaps let more peo...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25939
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 7/20/2018","articleBody":"# Loose mode/über mode\r\n\r\n#22665 and #23906\r\n\r\n* Problem: we haven't seen as much engagement on this proposal as we've wanted.\r\n* We don't want to drive this without user input.\r\n * Perhaps let more people use `checkJs`, and drive this scenario further.\r\n * Also should just speak to more users.\r\n\r\n# Named type arguments\r\n\r\n#23696\r\n\r\n* Having some concerns.\r\n* Adding nameable type arguments means that that you've made type arguments\r\n* Makes sense that you need some syntactic way to name a type argument.\r\n * Do we have any ideas for how that might work?\r\n * `**kw_args`?\r\n* What is the compelling scenario?\r\n * Partial inference is the primary driver.\r\n * Want to name one type parameter, have the others be inferred.\r\n * Naming complex type arguments is a big problem.\r\n* Declaration syntax that allows you to opt into named?\r\n * Could write them as destructuring-like syntax?\r\n* Conclusion: we want something for partial type inference, and we want some explicit way to opt in to named type arguments.\r\n\r\n# Trailing commas in type argument lists\r\n\r\n#21984\r\n\r\n* Looks like an error\r\n* Looks pretty gross\r\n* What if we want to reserve the design space for omitted elements? (e.g. using it for partial inference)\r\n* If we have more community interested, we'll reconsider it.\r\n\r\n# Inferring type predicates\r\n\r\n#16069\r\n\r\n* `T extends Something ? Something\u003cT> : Blah`\r\n* In `filter`, the predicate is contextually typed by a type guard.\r\n* Want to be able to say \"if we're contextually typed by a type guard, try to infer a type guard from the function body\"\r\n * Need some sort of `Truthy` type predicate.\r\n * That way it works on a higher-order (i.e. type parameters).\r\n* Could we express this in terms of conditional types?\r\n * Well it's not just `T extends Foo ? true : false`, since you don't know if `T` is used by multiple parameters.\r\n * That's why you use `typeof paramName`\r\n * So in a sense `x is Foo` is the same as `(typeof x) extends Foo ? true : false`\r\n * Maybe there's a way to unify these ideas.\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2018-07-25T20:29:39Z","url":"https://github.com/microsoft/TypeScript/issues/25939"}
| 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:bb4274b3-79c0-8d76-0fbd-8185620c3d89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC86:19E4BB:3252058:4035D6A:6B01D8AE |
| html-safe-nonce | d6cb6e820c97e5de48b021fb277e9dd727c180c658ef6d91f7e84c4499c5352e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzg2OjE5RTRCQjozMjUyMDU4OjQwMzVENkE6NkIwMUQ4QUUiLCJ2aXNpdG9yX2lkIjoiNjA0OTI1ODA3NTgwNDc4NDgxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 503c53a9f8cba28e531f8fa14299e7aa5ca19b12c069a6b0f90ba3103506fe0f |
| hovercard-subject-tag | issue:344595385 |
| 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/25939/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7ed2508948e7f2256cabd56cc05cabc5d68f7152aa6a5d9b2a72d7cfc57b6a1/microsoft/TypeScript/issues/25939 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7ed2508948e7f2256cabd56cc05cabc5d68f7152aa6a5d9b2a72d7cfc57b6a1/microsoft/TypeScript/issues/25939 |
| og:image:alt | Loose mode/über mode #22665 and #23906 Problem: we haven't seen as much engagement on this proposal as we've wanted. We don't want to drive this without user input. Perhaps let more people use chec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| 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