Non-String Indices in Kym Table Literals #24
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kayomn/ona#24
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Number indices on table literals are not properly supported. Not only does the parser itself not have any logic for inserting variables into numeric indices, but the runtime also has poorly implemented logic that will always result in an out-of-bounds exception if native code tries to insert into them.
The proposed Ona script syntax for numeric indices in tables is as follows:
In order to support symbols, similar to Ruby, I believe this issue should be expanded to also include handling for symbols.
The new syntax proposal is as follows:
Number Indices in Kym Table Literalsto Non-String Indices in Kym Table LiteralsRe-opening as #30 didn't end up solving this issue fully, only partially with the introduction of symbol indices.