Title: Can we have the safe call sugar to check null simply? · Issue #1049 · wurstscript/WurstScript · GitHub
Open Graph Title: Can we have the safe call sugar to check null simply? · Issue #1049 · wurstscript/WurstScript
X Title: Can we have the safe call sugar to check null simply? · Issue #1049 · wurstscript/WurstScript
Description: Like foo?.bar() in Kotlin and Swift. It's equal to: if foo != null foo.bar() And can we have a safe destroy too? I'm writing a lot these code when destory class elements: if foo != null destory foo
Open Graph Description: Like foo?.bar() in Kotlin and Swift. It's equal to: if foo != null foo.bar() And can we have a safe destroy too? I'm writing a lot these code when destory class elements: if foo != null destory foo
X Description: Like foo?.bar() in Kotlin and Swift. It's equal to: if foo != null foo.bar() And can we have a safe destroy too? I'm writing a lot these code when destory class elements: if foo != null des...
Opengraph URL: https://github.com/wurstscript/WurstScript/issues/1049
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can we have the safe call sugar to check null simply?","articleBody":"Like `foo?.bar()` in Kotlin and Swift. It's equal to:\r\n```\r\nif foo != null\r\n foo.bar()\r\n```\r\n\r\nAnd can we have a safe destroy too? I'm writing a lot these code when destory class elements:\r\n```\r\nif foo != null\r\n destory foo\r\n```\r\n","author":{"url":"https://github.com/cloudfox2","@type":"Person","name":"cloudfox2"},"datePublished":"2022-02-26T14:22:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1049/WurstScript/issues/1049"}
| 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:7eba1ee6-a145-efee-f21c-ae5ebaccedb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9492:37CF59:4D353F9:6673136:698C7596 |
| html-safe-nonce | 90a6c2d79ae63e00dff848682d7e095ffbf5bd1227a303963395c0f43a4ffe29 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDkyOjM3Q0Y1OTo0RDM1M0Y5OjY2NzMxMzY6Njk4Qzc1OTYiLCJ2aXNpdG9yX2lkIjoiNzUzMzE4MDk3NjAzOTIyODgyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 35a364eeebfc34629f1eb20049b6c3da2f7796c52b347e233a47628ad57bd69c |
| hovercard-subject-tag | issue:1151816633 |
| 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/wurstscript/WurstScript/1049/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6bf19365a30ed6ac91007606279ef69c27b4d70e18fa6ee42e56564c0a6819c9/wurstscript/WurstScript/issues/1049 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bf19365a30ed6ac91007606279ef69c27b4d70e18fa6ee42e56564c0a6819c9/wurstscript/WurstScript/issues/1049 |
| og:image:alt | Like foo?.bar() in Kotlin and Swift. It's equal to: if foo != null foo.bar() And can we have a safe destroy too? I'm writing a lot these code when destory class elements: if foo != null destory foo |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cloudfox2 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/wurstscript/WurstScript git https://github.com/wurstscript/WurstScript.git |
| octolytics-dimension-user_id | 30814797 |
| octolytics-dimension-user_login | wurstscript |
| octolytics-dimension-repository_id | 3584229 |
| octolytics-dimension-repository_nwo | wurstscript/WurstScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3584229 |
| octolytics-dimension-repository_network_root_nwo | wurstscript/WurstScript |
| 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 | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width