Title: Explore marking arrays with a metatable · Issue #535 · TypeScriptToLua/TypeScriptToLua · GitHub
Open Graph Title: Explore marking arrays with a metatable · Issue #535 · TypeScriptToLua/TypeScriptToLua
X Title: Explore marking arrays with a metatable · Issue #535 · TypeScriptToLua/TypeScriptToLua
Description: Since now there is no difference between {} and [], it's impossible to implement a stable Array.isArray. Transpling array literals to setmetatable({}, ____arrayMetatable) gives required data for Array.isArray and doesn't affect performan...
Open Graph Description: Since now there is no difference between {} and [], it's impossible to implement a stable Array.isArray. Transpling array literals to setmetatable({}, ____arrayMetatable) gives required data for Ar...
X Description: Since now there is no difference between {} and [], it's impossible to implement a stable Array.isArray. Transpling array literals to setmetatable({}, ____arrayMetatable) gives required data fo...
Opengraph URL: https://github.com/TypeScriptToLua/TypeScriptToLua/issues/535
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Explore marking arrays with a metatable","articleBody":"Since now there is no difference between `{}` and `[]`, it's impossible to implement a stable `Array.isArray`. Transpling array literals to `setmetatable({}, ____arrayMetatable)` gives required data for `Array.isArray` and doesn't affect performance too much.\r\n\r\nA major issue is that there would be a need for a new decorator (or a type) to mark functions that return standard lua arrays, and then set the metatable of returned values.","author":{"url":"https://github.com/ark120202","@type":"Person","name":"ark120202"},"datePublished":"2019-04-24T22:28:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/535/TypeScriptToLua/issues/535"}
| 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:222a918b-2f74-c4dc-f001-d683488bc6b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B158:1BA1D5:FED935:163F4E8:6970C4F1 |
| html-safe-nonce | 3e0fe738f5c6c1f35ec64d5426c280f42dfb91ece5d3f6c1e0dcd40cb784a553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU4OjFCQTFENTpGRUQ5MzU6MTYzRjRFODo2OTcwQzRGMSIsInZpc2l0b3JfaWQiOiI2MjA4NDg3MTU0OTg0NzMxODkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4eff60fef088b814b92f0e7d6a23516b3f808b71c6a93c872023792bcd71bf62 |
| hovercard-subject-tag | issue:436934143 |
| 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/TypeScriptToLua/TypeScriptToLua/535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee5783bb04b118a03d28e5098bf8d6fde665d94a5004ccf623a4aeadc71f0ef4/TypeScriptToLua/TypeScriptToLua/issues/535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee5783bb04b118a03d28e5098bf8d6fde665d94a5004ccf623a4aeadc71f0ef4/TypeScriptToLua/TypeScriptToLua/issues/535 |
| og:image:alt | Since now there is no difference between {} and [], it's impossible to implement a stable Array.isArray. Transpling array literals to setmetatable({}, ____arrayMetatable) gives required data for Ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ark120202 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f |
| turbo-cache-control | no-preview |
| go-import | github.com/TypeScriptToLua/TypeScriptToLua git https://github.com/TypeScriptToLua/TypeScriptToLua.git |
| octolytics-dimension-user_id | 44121206 |
| octolytics-dimension-user_login | TypeScriptToLua |
| octolytics-dimension-repository_id | 115876595 |
| octolytics-dimension-repository_nwo | TypeScriptToLua/TypeScriptToLua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115876595 |
| octolytics-dimension-repository_network_root_nwo | TypeScriptToLua/TypeScriptToLua |
| 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 | 34817b01ad7cdf8b2beb35ea7b0e2a7609004eff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width