Title: Compile-time refinement type for validation · Issue #194 · rowscript/rowscript · GitHub
Open Graph Title: Compile-time refinement type for validation · Issue #194 · rowscript/rowscript
X Title: Compile-time refinement type for validation · Issue #194 · rowscript/rowscript
Description: This issue describes a raw user requirement for an existing feature request, i.e., #34. As our user suggests, one should use type refinement to eliminate error-prone uses of types, like this: type User = { id: number.ge(0) // greater or ...
Open Graph Description: This issue describes a raw user requirement for an existing feature request, i.e., #34. As our user suggests, one should use type refinement to eliminate error-prone uses of types, like this: type ...
X Description: This issue describes a raw user requirement for an existing feature request, i.e., #34. As our user suggests, one should use type refinement to eliminate error-prone uses of types, like this: type ...
Opengraph URL: https://github.com/rowscript/rowscript/issues/194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compile-time refinement type for validation","articleBody":"This issue describes a raw user requirement for an existing feature request, i.e., #34.\n\nAs our user suggests, one should use type refinement to eliminate error-prone uses of types, like this:\n\n```ts\ntype User = {\n id: number.ge(0) // greater or equal to 0\n};\n\ntype Admin = {\n id: typeof(Usesr::id).lt(100) // less than 100, but greater or equal to 0\n};\n```\n\n* The predicate type should be flexible to place.\n* Proof terms should be easy to manipulate, automatically or manually.\n\nFor my own reference, Lean 4's [Subtype](https://leanprover-community.github.io/mathlib4_docs/Init/Prelude.html#Subtype) looks pretty much like the extension type we're looking for. Should investigate and cross-examine the usability of both.","author":{"url":"https://github.com/anqur","@type":"Person","name":"anqur"},"datePublished":"2025-04-27T07:37:06Z","url":"https://github.com/rowscript/rowscript/issues/194"}
| 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:28734972-5a89-1510-e994-97ad20b68e40 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CBC:13AF20:910172:CA50DE:6AFA1168 |
| html-safe-nonce | 3be019cc1280a85a7b576b6d45ea7cee9be216c4fce5679e410c11ba77b95d7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0JDOjEzQUYyMDo5MTAxNzI6Q0E1MERFOjZBRkExMTY4IiwidmlzaXRvcl9pZCI6IjI3MTc5Njk4NjIwNzEyOTIyNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d4cde3ec45bc6dbcc3fbbf605fd4aae88acf321e31248b1b7be6ccaad84289b1 |
| hovercard-subject-tag | issue:3022882082 |
| 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/194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f44b0a06b84edcad2936d5371f8132f7785c57954847626d3a10a9caad58856f/rowscript/rowscript/issues/194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f44b0a06b84edcad2936d5371f8132f7785c57954847626d3a10a9caad58856f/rowscript/rowscript/issues/194 |
| og:image:alt | This issue describes a raw user requirement for an existing feature request, i.e., #34. As our user suggests, one should use type refinement to eliminate error-prone uses of types, like this: type ... |
| 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