René's URL Explorer Experiment


Title: [Request for feedback] Nullable types, `null` and `undefined` · Issue #7426 · microsoft/TypeScript · GitHub

Open Graph Title: [Request for feedback] Nullable types, `null` and `undefined` · Issue #7426 · microsoft/TypeScript

X Title: [Request for feedback] Nullable types, `null` and `undefined` · Issue #7426 · microsoft/TypeScript

Description: With the work on Nullable types in #7140, we would like to field some user input on the current design proposal. First some background: null and undefined JavaScript has two ways that developers use today to denote uninitialized or no-va...

Open Graph Description: With the work on Nullable types in #7140, we would like to field some user input on the current design proposal. First some background: null and undefined JavaScript has two ways that developers us...

X Description: With the work on Nullable types in #7140, we would like to field some user input on the current design proposal. First some background: null and undefined JavaScript has two ways that developers us...

Mail addresses
notifications@github.com

Opengraph URL: https://github.com/microsoft/TypeScript/issues/7426

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Request for feedback] Nullable types, `null` and `undefined`","articleBody":"With the work on Nullable types in https://github.com/Microsoft/TypeScript/pull/7140, we would like to field some user input on the current design proposal.\n\nFirst some background:\n## `null` and `undefined`\n\nJavaScript has two ways that developers use today to denote `uninitialized` or `no-value`. the two behave differently.  where as null is completely left to user choice,  there is no way of opting out of `undefined` , so:\n\n``` ts\nfunction foo(a?: number) {\n   a // => number | undefined\n}\n\nfunction bar() {\n    if(a) return 0;\n}\n\nbar() // => number | undefined\n```\n\n`a` will always implicitly has `undefined`, and so will the return type of `bar`.\n## Nullability\n\nGiven the JS semantics outlined above, what does a nullable type `T?` mean:\n1.  `T | null | undefined`\n2.  `T | undefined`\n#### 1.  `T | null | undefined`\n\nIt is rather subtle what `?` means in different contexts:\n\n``` ts\nfunction bar(a: number?, b?: number) {\n  a // => number | undefined | null\n  b // => number | undefined\n}\n```\n#### 2.  `T | undefined`\n\nThis is more consistent, the `?` always means to `| undefined`; no confusion here.\n\n`T??` can be used to mean `T | undefined | null` or `T? | null`\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2016-03-07T21:19:05Z","url":"https://github.com/microsoft/TypeScript/issues/7426"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3c037173-9490-98dc-d396-d5c2c40054e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC996:311EEE:1AA751B:234A6E7:6B014F13
html-safe-nonce1429061f5a1df1da1926a324413a5e3f1fabb51e71b3a80c37f58b117435a7b9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTk2OjMxMUVFRToxQUE3NTFCOjIzNEE2RTc6NkIwMTRGMTMiLCJ2aXNpdG9yX2lkIjoiNTI5OTU1NTIwNDgyMjI5MDE5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6df96f411a273c9fc3e905e65d737722c268c0e8e4eb6bcb2cbfc0ce1e4e7127
hovercard-subject-tagissue:139097459
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7426/issue_layout
twitter:imagehttps://opengraph.githubassets.com/371ecf9132ba0e1f1152ada78ef7db800b9f75be838b0a0c440eaf871a0a54a6/microsoft/TypeScript/issues/7426
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/371ecf9132ba0e1f1152ada78ef7db800b9f75be838b0a0c440eaf871a0a54a6/microsoft/TypeScript/issues/7426
og:image:altWith the work on Nullable types in #7140, we would like to field some user input on the current design proposal. First some background: null and undefined JavaScript has two ways that developers us...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhegazy
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/7426#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7426
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%2Fmicrosoft%2FTypeScript%2Fissues%2F7426
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/7426
Reloadhttps://github.com/microsoft/TypeScript/issues/7426
Reloadhttps://github.com/microsoft/TypeScript/issues/7426
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7426
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7426
[Request for feedback] Nullable types, null and undefinedhttps://github.com/microsoft/TypeScript/issues/7426#top
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7426#issue-139097459
#7140https://github.com/microsoft/TypeScript/pull/7140
Nexthttps://github.com/microsoft/TypeScript/issues/7426?timeline_page=1
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7426#event-580790274
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193529857
#7140https://github.com/microsoft/TypeScript/pull/7140
https://cloud.githubusercontent.com/assets/874898/13588307/d7962208-e522-11e5-9cbf-8e7db96faf7a.png
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193530335
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193530815
Basarat Ali Syed (@basarat)https://github.com/basarat
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193531756
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#7140https://github.com/microsoft/TypeScript/pull/7140
#7140https://github.com/microsoft/TypeScript/pull/7140
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193532252
http://flowtype.org/docs/nullable-types.htmlhttp://flowtype.org/docs/nullable-types.html
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/evmar
Evan Martin (evmar)https://github.com/evmar
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193545164
https://github.com/evmar
Evan Martin (evmar)https://github.com/evmar
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193545525
https://github.com/spion
spion (spion)https://github.com/spion
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193561993
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
JavaScript standard stylehttps://github.com/feross/standard
https://github.com/EmmanuelOga
Emmanuel Oga (EmmanuelOga)https://github.com/EmmanuelOga
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193569235
similar proposal for the dart language herehttps://github.com/chalin/DEP-non-null/blob/master/doc/dep-non-null-AUTOGENERATED-DO-NOT-EDIT.md#precedent
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193575407
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193623924
https://github.com/jesseschalken
Jesse Schalken (jesseschalken)https://github.com/jesseschalken
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193684915
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Basarat Ali Syed (@basarat)https://github.com/basarat
http://flowtype.org/docs/nullable-types.htmlhttp://flowtype.org/docs/nullable-types.html
https://github.com/dallonf
Dallon Feldner (dallonf)https://github.com/dallonf
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193804047
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 8, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-193810139
dokidokivisual commit bot (dokidokivisual)https://github.com/dokidokivisual
on May 4, 2016https://github.com/microsoft/TypeScript/issues/7426#event-650197990
Auto merge of #604 - saneyuki:nullable, r=saneyukihttps://github.com/karen-irc/karen/commit/25ed88bd7cc2b2113c52bc0a28c205f2d2183264
#604https://github.com/karen-irc/karen/pull/604
25ed88bhttps://github.com/karen-irc/karen/commit/25ed88bd7cc2b2113c52bc0a28c205f2d2183264
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Jun 24, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228443926
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jun 26, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228626623
Aluan Haddad (@aluanhaddad)https://github.com/aluanhaddad
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Jun 26, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228628011
jods (@jods4)https://github.com/jods4
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Jun 26, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228630489
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Jun 27, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228632198
#7426 (comment)https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228630489
https://github.com/notifications/unsubscribe/AA5Pzd4Itjc6Dv7ack2i5m5cswfbyNdcks5qPw-1gaJpZM4HrL9yhttps://github.com/notifications/unsubscribe/AA5Pzd4Itjc6Dv7ack2i5m5cswfbyNdcks5qPw-1gaJpZM4HrL9y
https://github.com/jesseschalken
Jesse Schalken (jesseschalken)https://github.com/jesseschalken
on Jun 27, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-228634752
herehttps://github.com/Microsoft/TypeScript/issues/7426#issuecomment-195743448
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Jun 29, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-229260148
Basarat Ali Syed (@basarat)https://github.com/basarat
https://github.com/jesseschalken
Jesse Schalken (jesseschalken)https://github.com/jesseschalken
on Jun 29, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-229269332
http://kiro.me/blog/typeof_null.htmlhttp://kiro.me/blog/typeof_null.html
http://www.2ality.com/2013/10/typeof-null.htmlhttp://www.2ality.com/2013/10/typeof-null.html
https://twitter.com/BrendanEich/status/652440848299372544https://twitter.com/BrendanEich/status/652440848299372544
https://twitter.com/BrendanEich/status/286600050023469056https://twitter.com/BrendanEich/status/286600050023469056
https://twitter.com/BrendanEich/status/330775086208524288https://twitter.com/BrendanEich/status/330775086208524288
https://twitter.com/BrendanEich/status/617450289889607681https://twitter.com/BrendanEich/status/617450289889607681
https://twitter.com/BrendanEich/status/157868556837584896https://twitter.com/BrendanEich/status/157868556837584896
https://twitter.com/BrendanEich/status/720863709103435780https://twitter.com/BrendanEich/status/720863709103435780
ES spechttp://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Jul 1, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-229859387
Jesse Schalken (@jesseschalken)https://github.com/jesseschalken
http://wiki.ecmascript.org/doku.php?id=discussion:typeofhttp://wiki.ecmascript.org/doku.php?id=discussion:typeof
https://github.com/xogeny
Michael Tiller (xogeny)https://github.com/xogeny
on Nov 7, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-258932829
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Nov 7, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-258944971
Michael Tiller (@xogeny)https://github.com/xogeny
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 16, 2016https://github.com/microsoft/TypeScript/issues/7426#issuecomment-261024932
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/7426#event-1689642197
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/7426
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7426
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
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

Viewport: width=device-width


URLs of crawlers that visited me.