Title: Elaborator reflection for generating `isXXX` functions for enum types · Issue #172 · rowscript/rowscript · GitHub
Open Graph Title: Elaborator reflection for generating `isXXX` functions for enum types · Issue #172 · rowscript/rowscript
X Title: Elaborator reflection for generating `isXXX` functions for enum types · Issue #172 · rowscript/rowscript
Description: This feature is inspired by @roife. For such enum type: type Foo = [A | B]; It's better that we could have some reflection techniques to generate these functions: function isA<'a>(a: [A | 'a]): boolean; function isB<'a>(a: [B | 'a]): boo...
Open Graph Description: This feature is inspired by @roife. For such enum type: type Foo = [A | B]; It's better that we could have some reflection techniques to generate these functions: function isA<'a>(a: [A | 'a]): boo...
X Description: This feature is inspired by @roife. For such enum type: type Foo = [A | B]; It's better that we could have some reflection techniques to generate these functions: function isA<'a>(a: ...
Opengraph URL: https://github.com/rowscript/rowscript/issues/172
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Elaborator reflection for generating `isXXX` functions for enum types","articleBody":"This feature is inspired by @roife.\r\n\r\nFor such enum type:\r\n\r\n```ts\r\ntype Foo = [A | B];\r\n```\r\n\r\nIt's better that we could have some reflection techniques to generate these functions:\r\n\r\n```ts\r\nfunction isA\u003c'a>(a: [A | 'a]): boolean;\r\nfunction isB\u003c'a>(a: [B | 'a]): boolean;\r\n```","author":{"url":"https://github.com/anqur","@type":"Person","name":"anqur"},"datePublished":"2024-07-07T12:28:33Z","url":"https://github.com/rowscript/rowscript/issues/172"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:cb0840cf-d48a-dd4a-e78e-b60cd0787924 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAC6:33A683:3844CEA:4A2FF5F:6AFA1157 |
| html-safe-nonce | d1b413fc3f49a2a822541ddf6d8d6634c33af6f75529020610a23ff953686c63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUM2OjMzQTY4MzozODQ0Q0VBOjRBMkZGNUY6NkFGQTExNTciLCJ2aXNpdG9yX2lkIjoiNTA1MzU1MzA1NDQ5ODU1ODI5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b11770b7972f89178d0e3ced4359e15a1e6fd2b27dad2bff4eac389e54d9650a |
| hovercard-subject-tag | issue:2394033989 |
| 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/rowscript/rowscript/172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca6a99c7c72c6783787ed41932b9041e8584922be76c70d7b131849e02959b53/rowscript/rowscript/issues/172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca6a99c7c72c6783787ed41932b9041e8584922be76c70d7b131849e02959b53/rowscript/rowscript/issues/172 |
| og:image:alt | This feature is inspired by @roife. For such enum type: type Foo = [A | B]; It's better that we could have some reflection techniques to generate these functions: function isA<'a>(a: [A | 'a]): boo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anqur |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/rowscript/rowscript git https://github.com/rowscript/rowscript.git |
| octolytics-dimension-user_id | 87884599 |
| octolytics-dimension-user_login | rowscript |
| octolytics-dimension-repository_id | 388972006 |
| octolytics-dimension-repository_nwo | rowscript/rowscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 388972006 |
| octolytics-dimension-repository_network_root_nwo | rowscript/rowscript |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width