Title: Add an AS Equivalent to Option in Rust to the AS Standard Library · Issue #1410 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Add an AS Equivalent to Option in Rust to the AS Standard Library · Issue #1410 · AssemblyScript/assemblyscript
X Title: Add an AS Equivalent to Option in Rust to the AS Standard Library · Issue #1410 · AssemblyScript/assemblyscript
Description: One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool just to write up a quick equivalent to C#'...
Open Graph Description: One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool ju...
X Description: One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1410
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an AS Equivalent to Option in Rust to the AS Standard Library","articleBody":"One thing about AS is that [basic types cannot be nullable](https://www.assemblyscript.org/types.html#nullability). However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool just to write up a quick equivalent to [C#'s Nullable](https://docs.microsoft.com/en-us/dotnet/api/system.nullable-1?view=netcore-3.1) or [Rust's Option](https://doc.rust-lang.org/std/option/enum.Option.html).\r\n\r\nI could super easily add this myself. I personally like C#'s interface more, but I think it should be named `Optional`. That way, it doesn't conflict with our already exisiting idea of nullability in the docs. \r\n\r\nWhat do y'all think @dcodeIO @MaxGraey @jtenner @sirwillem ? :smile: ","author":{"url":"https://github.com/torch2424","@type":"Person","name":"torch2424"},"datePublished":"2020-07-24T00:07:03Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1410"}
| 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:c01b6079-9660-3307-27e9-2c34fb5e4d43 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B456:63646:297B9:3807C:6B006040 |
| html-safe-nonce | 85d863f9f5c5e81e92ed808cf63cef94a96edab953b6447c8de5823bd7f129b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDU2OjYzNjQ2OjI5N0I5OjM4MDdDOjZCMDA2MDQwIiwidmlzaXRvcl9pZCI6IjUyNTE3OTc4OTE0OTk5NzQ3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4088aad8f92e1b16e629f5fec7834037b4f497973099724b973461af54df6f6a |
| hovercard-subject-tag | issue:664837788 |
| 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/AssemblyScript/assemblyscript/1410/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6eecab01c4793302e52cc1165790aa396686bdd241e5a665f09dddb3a45335ff/AssemblyScript/assemblyscript/issues/1410 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6eecab01c4793302e52cc1165790aa396686bdd241e5a665f09dddb3a45335ff/AssemblyScript/assemblyscript/issues/1410 |
| og:image:alt | One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool ju... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | torch2424 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width