| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0a9d3282-10bb-c119-4d28-8c1ffda0b854 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A96A:173AF1:19CBC3:1F0C9A:6B0A17EA |
| html-safe-nonce | 362358259ce88c379e3358d0be8f96189709355429732ee8e1953567223ae06a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZBOjE3M0FGMToxOUNCQzM6MUYwQzlBOjZCMEExN0VBIiwidmlzaXRvcl9pZCI6IjE5MDIwNzMyMzQyOTY4MDUzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a9cf066954eb2eaaf2b629bad4e0b13f9ff6c6a2f7ddb59dd495f839bc5eb36b |
| hovercard-subject-tag | pull_request:3563002417 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/rescript-lang/rescript/8380/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/3244ab087108f8c19d12427654774398715dbe189fe3d858926cc7a691a33c0d/rescript-lang/rescript/pull/8380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3244ab087108f8c19d12427654774398715dbe189fe3d858926cc7a691a33c0d/rescript-lang/rescript/pull/8380 |
| og:image:alt | Summary
This PR removes Primitive_option.toUndefined and switches optional FFI argument lowering to use Primitive_option.valFromOption instead.
valFromOption already has the right runtime behavior ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cknitt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c47183a73008933468557b28d2500e2ea7619094b9fe68a81910d76811eeb3c |
| turbo-cache-control | no-cache |
| go-import | github.com/rescript-lang/rescript git https://github.com/rescript-lang/rescript.git |
| octolytics-dimension-user_id | 29257325 |
| octolytics-dimension-user_login | rescript-lang |
| octolytics-dimension-repository_id | 49159983 |
| octolytics-dimension-repository_nwo | rescript-lang/rescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49159983 |
| octolytics-dimension-repository_network_root_nwo | rescript-lang/rescript |
| 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 | 206ca5e2e4c7feca284ad1771fa08530fd32785c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/rescript-lang/rescript/pull/8380#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frescript-lang%2Frescript%2Fpull%2F8380 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frescript-lang%2Frescript%2Fpull%2F8380 |
| 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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=rescript-lang%2Frescript |
| Reload | https://github.com/rescript-lang/rescript/pull/8380 |
| Reload | https://github.com/rescript-lang/rescript/pull/8380 |
| Reload | https://github.com/rescript-lang/rescript/pull/8380 |
| rescript-lang | https://github.com/rescript-lang |
| rescript | https://github.com/rescript-lang/rescript |
| Code | https://github.com/rescript-lang/rescript |
| Issues110 (110) | https://github.com/rescript-lang/rescript/issues |
| Pull requests99 (99) | https://github.com/rescript-lang/rescript/pulls |
| Discussions | https://github.com/rescript-lang/rescript/discussions |
| Actions | https://github.com/rescript-lang/rescript/actions |
| Projects | https://github.com/rescript-lang/rescript/projects |
| Security and quality | https://github.com/rescript-lang/rescript/security |
| Insights | https://github.com/rescript-lang/rescript/insights |
| https://github.com/rescript-lang/rescript |
| cknitt | https://github.com/cknitt |
| master | https://github.com/rescript-lang/rescript/tree/master |
| remove-undefined | https://github.com/rescript-lang/rescript/tree/remove-undefined |
| Conversation | https://github.com/rescript-lang/rescript/pull/8380 |
| Commits2 (2) | https://github.com/rescript-lang/rescript/pull/8380/commits |
| Checks | https://github.com/rescript-lang/rescript/pull/8380/checks |
| Files changed | https://github.com/rescript-lang/rescript/pull/8380/files |
| Remove Primitive_option.toUndefined; use valFromOption for optional ffi args | https://github.com/rescript-lang/rescript/pull/8380#top |
| cknitt | https://github.com/cknitt |
| master | https://github.com/rescript-lang/rescript/tree/master |
| remove-undefined | https://github.com/rescript-lang/rescript/tree/remove-undefined |
|
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| Apr 21, 2026 | https://github.com/rescript-lang/rescript/pull/8380#issue-4304045022 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| cristianoc | https://github.com/cristianoc |
| April 21, 2026 16:43 | https://github.com/rescript-lang/rescript/pull/8380#event-24726185601 |
| https://github.com/apps/pkg-pr-new |
| pkg-pr-new | https://github.com/apps/pkg-pr-new |
| Apr 21, 2026 | https://github.com/rescript-lang/rescript/pull/8380#issuecomment-4290342723 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| Open in StackBlitz | https://pkg.pr.new/template/c63e331e-3a5f-4d09-ba94-8f0420b4045b |
| 8dfc06d | https://github.com/rescript-lang/rescript/runs/72938989156 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| cknitt | https://github.com/cknitt |
| April 24, 2026 20:50 | https://github.com/rescript-lang/rescript/pull/8380#commits-pushed-e80b833 |
|
| https://github.com/cknitt |
| Remove Primitive_option.toUndefined; use valFromOption for optional f… | https://github.com/rescript-lang/rescript/pull/8380/commits/e80b833e24889011e361a99b8a623137f8b5fb73 |
| e80b833 | https://github.com/rescript-lang/rescript/pull/8380/commits/e80b833e24889011e361a99b8a623137f8b5fb73 |
|
| https://github.com/cknitt |
| CHANGELOG | https://github.com/rescript-lang/rescript/pull/8380/commits/8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
| 8dfc06d | https://github.com/rescript-lang/rescript/pull/8380/commits/8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| force-pushed | https://github.com/rescript-lang/rescript/compare/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad..8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
| a13afcf | https://github.com/rescript-lang/rescript/commit/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad |
| 8dfc06d | https://github.com/rescript-lang/rescript/commit/8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
|
Compare
| https://github.com/rescript-lang/rescript/compare/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad..8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
| April 24, 2026 18:52 | https://github.com/rescript-lang/rescript/pull/8380#event-24848840382 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| zth | https://github.com/zth |
| April 24, 2026 18:53 | https://github.com/rescript-lang/rescript/pull/8380#event-24848860861 |
| https://github.com/tsnobip |
| tsnobip | https://github.com/tsnobip |
|
Apr 27, 2026
| https://github.com/rescript-lang/rescript/pull/8380#pullrequestreview-4179744968 |
|
View reviewed changes
| https://github.com/rescript-lang/rescript/pull/8380/files/8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
| tsnobip | https://github.com/tsnobip |
| https://github.com/rescript-lang/rescript/pull/8380#pullrequestreview-4179744968 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| Apr 27, 2026 | https://github.com/rescript-lang/rescript/pull/8380#issuecomment-4326648083 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| 858bdaa | https://github.com/rescript-lang/rescript/commit/858bdaae35217efcfdfe0dadbe9f47d5231f3e6f |
| Apr 27, 2026 | https://github.com/rescript-lang/rescript/pull/8380#event-24903520705 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| https://github.com/cknitt |
| cknitt | https://github.com/cknitt |
| April 27, 2026 11:39 | https://github.com/rescript-lang/rescript/pull/8380#event-24903521925 |
| aspeddro | https://github.com/aspeddro |
|
Oct 31, 2026
| https://github.com/rescript-lang/rescript/pull/8380#ref-commit-492aa9a |
|
| https://github.com/cknitt |
|
| https://github.com/aspeddro |
| Remove Primitive_option.toUndefined; use valFromOption for optional f… | https://github.com/aspeddro/rescript-compiler/commit/492aa9ac80a7fad7ec7c4b0ab28147c73bad1daa |
| 492aa9a | https://github.com/aspeddro/rescript-compiler/commit/492aa9ac80a7fad7ec7c4b0ab28147c73bad1daa |
| rescript-lang#8380 | https://github.com/rescript-lang/rescript/pull/8380 |
|
An external call throws a TypeError when ~x=? is given a call or lookup that returns None
#9226
| https://github.com/rescript-lang/rescript/issues/9226 |
|
Evaluate optional @obj arguments in source order and read properties once
#9283
| https://github.com/rescript-lang/rescript/pull/9283 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
Nov 9, 2026
| https://github.com/rescript-lang/rescript/pull/8380#ref-pullrequest-6211172247 |
|
Evaluate @int, @as, unit and @ignore arguments of externals in their place
#9231
| https://github.com/rescript-lang/rescript/pull/9231 |
| https://github.com/mununki |
| mununki | https://github.com/mununki |
|
Nov 9, 2026
| https://github.com/rescript-lang/rescript/pull/8380#ref-pullrequest-6291569653 |
|
Pass undefined for an optional external argument or JSX key that is None
#9288
| https://github.com/rescript-lang/rescript/pull/9288 |
| mununki | https://github.com/mununki |
|
Nov 10, 2026
| https://github.com/rescript-lang/rescript/pull/8380#ref-commit-eb467b0 |
|
| https://github.com/mununki |
| Pass undefined for an optional external argument or JSX key that is N… | https://github.com/rescript-lang/rescript/commit/eb467b07c690b7be0d72dd0362115c490020e9f5 |
| eb467b0 | https://github.com/rescript-lang/rescript/commit/eb467b07c690b7be0d72dd0362115c490020e9f5 |
| #9288 | https://github.com/rescript-lang/rescript/pull/9288 |
| #8380 | https://github.com/rescript-lang/rescript/pull/8380 |
| @Val | https://github.com/Val |
| #8380 | https://github.com/rescript-lang/rescript/pull/8380 |
| https://github.co/hiddenchars |
| https://github.com/rescript-lang/rescript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frescript-lang%2Frescript%2Fpull%2F8380 |
|
| https://github.com/tsnobip |
|
tsnobip
| https://github.com/tsnobip |
|
| https://github.com/rescript-lang/rescript/pull/8380/files/8dfc06dcdd86f62eb9881fddb30396f5e460c573 |
|
| https://github.com/cristianoc |
|
cristianoc
| https://github.com/cristianoc |
|
| https://github.com/zth |
|
zth
| https://github.com/zth |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
| Please reload this page | https://github.com/rescript-lang/rescript/pull/8380 |
|
| https://github.com/cknitt |
|
| https://github.com/tsnobip |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |