Dynamic Object Indexing for Kym #31

Merged
kayomn merged 3 commits from kym-dynamic-indexing into main 2023-08-12 16:15:50 +02:00
Owner

Adds support for indexing with values other than symbols on objects like tables.

options = {
	.title = "Game",
	["foo"] = "bar",
	[42] = "42",
}

options["foo"] = "rab"
options[42] = "24"

@log_info(options.title)
@log_info(options["foo"])
@log_info(options[42])

Closes #24.

Adds support for indexing with values other than symbols on objects like tables. ```lua options = { .title = "Game", ["foo"] = "bar", [42] = "42", } options["foo"] = "rab" options[42] = "24" @log_info(options.title) @log_info(options["foo"]) @log_info(options[42]) ``` Closes #24.
kayomn added this to the (deleted) milestone 2023-08-12 16:14:19 +02:00
kayomn added the
bug
label 2023-08-12 16:14:19 +02:00
kayomn self-assigned this 2023-08-12 16:14:19 +02:00
kayomn added 3 commits 2023-08-12 16:14:19 +02:00
kayomn merged commit cb961ea573 into main 2023-08-12 16:15:50 +02:00
kayomn deleted branch kym-dynamic-indexing 2023-08-12 16:15:50 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kayomn/ona#31
No description provided.