Title: Suggestion: "safe navigation operator", i.e. x?.y · Issue #16 · microsoft/TypeScript · GitHub
Open Graph Title: Suggestion: "safe navigation operator", i.e. x?.y · Issue #16 · microsoft/TypeScript
X Title: Suggestion: "safe navigation operator", i.e. x?.y · Issue #16 · microsoft/TypeScript
Description: Current Status The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉) Implementation is in progress You can expect this feature in TypeScript 3.7 We'll update here when it's available in a nightly build Holding off on Optional Call until its semant...
Open Graph Description: Current Status The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉) Implementation is in progress You can expect this feature in TypeScript 3.7 We'll update here when it's available in a nightly build Holdi...
X Description: Current Status The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉) Implementation is in progress You can expect this feature in TypeScript 3.7 We'll update here when it's available in a nightly bui...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: \"safe navigation operator\", i.e. x?.y","articleBody":"# Current Status\r\n\r\n * The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉)\r\n * Implementation is in progress\r\n * You can expect this feature in TypeScript 3.7\r\n * We'll update here when it's available in a nightly build\r\n * Holding off on Optional Call until its semantics are clarified at committee\r\n\r\nOpen questions\r\n\r\n * What special-casing, if any, should `document.all` get?\r\n\r\n--------\r\n\r\nC# and other languages have syntax sugar for accessing property chains where `null` (or in our case, `undefined`) might be encountered at any point in the object hierarchy.\r\n\r\n``` TypeScript\r\nvar x = { y: { z: null, q: undefined } };\r\nconsole.log(x?.y?.z?.foo); // Should print 'null'\r\nconsole.log(x?.baz); // Still an error\r\nconsole.log(x.y.q?.bar); // Should print 'undefined'\r\n```\r\n\r\nNeed proposal on what exactly we should codegen, keeping in mind side effects of accessors.\r\n\r\n_____\r\n***Edit by @DanielRosenwasser February 27, 2018:** This proposal is also called the \"null propagation\" operator.*","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2014-07-15T17:27:00Z","url":"https://github.com/microsoft/TypeScript/issues/16"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0d911db8-ca76-aff3-1b66-6db20585c4df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD3E:E9D16:113E3A:15ABFA:6B00F863 |
| html-safe-nonce | 7834f5671000c0a7c932a94942733738b76ddd32f7e95a4c41f50b20480b06e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDNFOkU5RDE2OjExM0UzQToxNUFCRkE6NkIwMEY4NjMiLCJ2aXNpdG9yX2lkIjoiMjQ2MTA3Mzg4MzY4NDQ2ODgzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cc41d736e3a8e3841b86ad9d39beeff15185f79d20c6703faa0b40374fee140f |
| hovercard-subject-tag | issue:37906351 |
| 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/Microsoft/TypeScript/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0546803eb3ca0f2149fbbbb871f44a1ef16f51d82c26d90d3bf58cbf15921d4f/microsoft/TypeScript/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0546803eb3ca0f2149fbbbb871f44a1ef16f51d82c26d90d3bf58cbf15921d4f/microsoft/TypeScript/issues/16 |
| og:image:alt | Current Status The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉) Implementation is in progress You can expect this feature in TypeScript 3.7 We'll update here when it's available in a nightly build Holdi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width