René's URL Explorer Experiment


Title: Remove Primitive_option.toUndefined; use valFromOption for optional ffi args by cknitt · Pull Request #8380 · rescript-lang/rescript · GitHub

Open Graph Title: Remove Primitive_option.toUndefined; use valFromOption for optional ffi args by cknitt · Pull Request #8380 · rescript-lang/rescript

X Title: Remove Primitive_option.toUndefined; use valFromOption for optional ffi args by cknitt · Pull Request #8380 · rescript-lang/rescript

Description: ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. - Remove Primitive_option.toUndefined; use valFromOption for optional ffi args by cknitt · Pull Request #8380 · rescript-lang/rescript

Open Graph Description: 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 ...

X Description: 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 ...

Opengraph URL: https://github.com/rescript-lang/rescript/pull/8380

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0a9d3282-10bb-c119-4d28-8c1ffda0b854
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA96A:173AF1:19CBC3:1F0C9A:6B0A17EA
html-safe-nonce362358259ce88c379e3358d0be8f96189709355429732ee8e1953567223ae06a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZBOjE3M0FGMToxOUNCQzM6MUYwQzlBOjZCMEExN0VBIiwidmlzaXRvcl9pZCI6IjE5MDIwNzMyMzQyOTY4MDUzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca9cf066954eb2eaaf2b629bad4e0b13f9ff6c6a2f7ddb59dd495f839bc5eb36b
hovercard-subject-tagpull_request:3563002417
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/rescript-lang/rescript/8380/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3244ab087108f8c19d12427654774398715dbe189fe3d858926cc7a691a33c0d/rescript-lang/rescript/pull/8380
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3244ab087108f8c19d12427654774398715dbe189fe3d858926cc7a691a33c0d/rescript-lang/rescript/pull/8380
og:image:altSummary 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecknitt
hostnamegithub.com
expected-hostnamegithub.com
None7c47183a73008933468557b28d2500e2ea7619094b9fe68a81910d76811eeb3c
turbo-cache-controlno-cache
go-importgithub.com/rescript-lang/rescript git https://github.com/rescript-lang/rescript.git
octolytics-dimension-user_id29257325
octolytics-dimension-user_loginrescript-lang
octolytics-dimension-repository_id49159983
octolytics-dimension-repository_nworescript-lang/rescript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49159983
octolytics-dimension-repository_network_root_nworescript-lang/rescript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release206ca5e2e4c7feca284ad1771fa08530fd32785c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/rescript-lang/rescript/pull/8380#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frescript-lang%2Frescript%2Fpull%2F8380
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frescript-lang%2Frescript%2Fpull%2F8380
Sign uphttps://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
Reloadhttps://github.com/rescript-lang/rescript/pull/8380
Reloadhttps://github.com/rescript-lang/rescript/pull/8380
Reloadhttps://github.com/rescript-lang/rescript/pull/8380
rescript-langhttps://github.com/rescript-lang
rescripthttps://github.com/rescript-lang/rescript
Codehttps://github.com/rescript-lang/rescript
Issues110 (110)https://github.com/rescript-lang/rescript/issues
Pull requests99 (99)https://github.com/rescript-lang/rescript/pulls
Discussionshttps://github.com/rescript-lang/rescript/discussions
Actionshttps://github.com/rescript-lang/rescript/actions
Projectshttps://github.com/rescript-lang/rescript/projects
Security and qualityhttps://github.com/rescript-lang/rescript/security
Insightshttps://github.com/rescript-lang/rescript/insights
https://github.com/rescript-lang/rescript
cknitthttps://github.com/cknitt
masterhttps://github.com/rescript-lang/rescript/tree/master
remove-undefinedhttps://github.com/rescript-lang/rescript/tree/remove-undefined
Conversationhttps://github.com/rescript-lang/rescript/pull/8380
Commits2 (2)https://github.com/rescript-lang/rescript/pull/8380/commits
Checkshttps://github.com/rescript-lang/rescript/pull/8380/checks
Files changedhttps://github.com/rescript-lang/rescript/pull/8380/files
Remove Primitive_option.toUndefined; use valFromOption for optional ffi argshttps://github.com/rescript-lang/rescript/pull/8380#top
cknitthttps://github.com/cknitt
masterhttps://github.com/rescript-lang/rescript/tree/master
remove-undefinedhttps://github.com/rescript-lang/rescript/tree/remove-undefined
https://github.com/cknitt
cknitthttps://github.com/cknitt
Apr 21, 2026https://github.com/rescript-lang/rescript/pull/8380#issue-4304045022
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
https://github.com/cknitt
cknitthttps://github.com/cknitt
cristianochttps://github.com/cristianoc
April 21, 2026 16:43https://github.com/rescript-lang/rescript/pull/8380#event-24726185601
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Apr 21, 2026https://github.com/rescript-lang/rescript/pull/8380#issuecomment-4290342723
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
Open in StackBlitzhttps://pkg.pr.new/template/c63e331e-3a5f-4d09-ba94-8f0420b4045b
8dfc06dhttps://github.com/rescript-lang/rescript/runs/72938989156
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
cknitthttps://github.com/cknitt
April 24, 2026 20:50https://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
e80b833https://github.com/rescript-lang/rescript/pull/8380/commits/e80b833e24889011e361a99b8a623137f8b5fb73
https://github.com/cknitt
CHANGELOGhttps://github.com/rescript-lang/rescript/pull/8380/commits/8dfc06dcdd86f62eb9881fddb30396f5e460c573
8dfc06dhttps://github.com/rescript-lang/rescript/pull/8380/commits/8dfc06dcdd86f62eb9881fddb30396f5e460c573
https://github.com/cknitt
cknitthttps://github.com/cknitt
force-pushedhttps://github.com/rescript-lang/rescript/compare/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad..8dfc06dcdd86f62eb9881fddb30396f5e460c573
a13afcfhttps://github.com/rescript-lang/rescript/commit/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad
8dfc06dhttps://github.com/rescript-lang/rescript/commit/8dfc06dcdd86f62eb9881fddb30396f5e460c573
Compare https://github.com/rescript-lang/rescript/compare/a13afcfc35ffd5a888f6cc59b933f56f263bd1ad..8dfc06dcdd86f62eb9881fddb30396f5e460c573
April 24, 2026 18:52https://github.com/rescript-lang/rescript/pull/8380#event-24848840382
https://github.com/cknitt
cknitthttps://github.com/cknitt
zthhttps://github.com/zth
April 24, 2026 18:53https://github.com/rescript-lang/rescript/pull/8380#event-24848860861
https://github.com/tsnobip
tsnobiphttps://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
tsnobiphttps://github.com/tsnobip
https://github.com/rescript-lang/rescript/pull/8380#pullrequestreview-4179744968
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
https://github.com/cknitt
cknitthttps://github.com/cknitt
Apr 27, 2026https://github.com/rescript-lang/rescript/pull/8380#issuecomment-4326648083
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
https://github.com/cknitt
cknitthttps://github.com/cknitt
858bdaahttps://github.com/rescript-lang/rescript/commit/858bdaae35217efcfdfe0dadbe9f47d5231f3e6f
Apr 27, 2026https://github.com/rescript-lang/rescript/pull/8380#event-24903520705
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
https://github.com/cknitt
cknitthttps://github.com/cknitt
April 27, 2026 11:39https://github.com/rescript-lang/rescript/pull/8380#event-24903521925
aspeddrohttps://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
492aa9ahttps://github.com/aspeddro/rescript-compiler/commit/492aa9ac80a7fad7ec7c4b0ab28147c73bad1daa
rescript-lang#8380https://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-actionshttps://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
mununkihttps://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
mununkihttps://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
eb467b0https://github.com/rescript-lang/rescript/commit/eb467b07c690b7be0d72dd0362115c490020e9f5
#9288https://github.com/rescript-lang/rescript/pull/9288
#8380https://github.com/rescript-lang/rescript/pull/8380
@Valhttps://github.com/Val
#8380https://github.com/rescript-lang/rescript/pull/8380
https://github.co/hiddenchars
https://github.com/rescript-lang/rescript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/rescript-lang/rescript/pull/8380
Please reload this pagehttps://github.com/rescript-lang/rescript/pull/8380
https://github.com/cknitt
https://github.com/tsnobip
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.