Title: Object/Class/Interface destructuring · Issue #1473 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Object/Class/Interface destructuring · Issue #1473 · AssemblyScript/assemblyscript
X Title: Object/Class/Interface destructuring · Issue #1473 · AssemblyScript/assemblyscript
Description: [enhancement] Currently, it seems that destructuring is not supported. It is one of my most used TS features, and I'd like to see it in AssemblyScript. There are many subtleties to destructuring, but the original TS repo has a well-docum...
Open Graph Description: [enhancement] Currently, it seems that destructuring is not supported. It is one of my most used TS features, and I'd like to see it in AssemblyScript. There are many subtleties to destructuring, b...
X Description: [enhancement] Currently, it seems that destructuring is not supported. It is one of my most used TS features, and I'd like to see it in AssemblyScript. There are many subtleties to destructurin...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1473
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object/Class/Interface destructuring","articleBody":"\u003c!--\r\n Thanks for submitting an issue to AssemblyScript! Please take a moment to\r\n read the contributing guidelines linked below to get off to a good start 🙂\r\n-->\r\n\r\n[enhancement]\r\n\r\nCurrently, it seems that destructuring is not supported. It is one of my most used TS features, and I'd like to see it in AssemblyScript.\r\n\r\nThere are many subtleties to destructuring, but the original TS repo has a well-documented history of changes:\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/1346\r\nhttps://github.com/microsoft/TypeScript/pull/1463\r\n\r\n\r\nWe would ideally support\r\n\r\n```typescript\r\nvar [x, y] = [10, 20];\r\n[x, y] = [y, x];\r\n\r\n// and \r\n\r\ninterface Foo { bar: f32, baz: f32 };\r\nconst { bar } = Foo;\r\n\r\n// and\r\n\r\nclass Foo { bar: f32 = 10.0 };\r\nconst { bar } = new Foo();\r\n````\r\n\r\n","author":{"url":"https://github.com/jkelleyrtp","@type":"Person","name":"jkelleyrtp"},"datePublished":"2020-09-25T21:39:16Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1473"}
| 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:7e55c014-4c72-1866-ba7d-5ed1fe974677 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A16E:49948:16419B:1E369D:6B0064B8 |
| html-safe-nonce | aa6516d597e83ffbf73fb20eb0fc78f51b19be09bcb65c37b706a97274def6f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTZFOjQ5OTQ4OjE2NDE5QjoxRTM2OUQ6NkIwMDY0QjgiLCJ2aXNpdG9yX2lkIjoiMzI3MDIzMDcyNDIyNTAzMzQwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1fe3c6d60440a7c582a85fa563cbe19704b638e2b0b53f2c02723665f181532f |
| hovercard-subject-tag | issue:709298692 |
| 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/1473/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68e8a05d1bde8fc490e8386c0159d722b2b1b7844844bd0543d71b5e6f8599cb/AssemblyScript/assemblyscript/issues/1473 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68e8a05d1bde8fc490e8386c0159d722b2b1b7844844bd0543d71b5e6f8599cb/AssemblyScript/assemblyscript/issues/1473 |
| og:image:alt | [enhancement] Currently, it seems that destructuring is not supported. It is one of my most used TS features, and I'd like to see it in AssemblyScript. There are many subtleties to destructuring, b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jkelleyrtp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| 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 | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width