Skip to content

Improve luau.set rendering for string members (keys) which are valid identifiers#548

Open
osyrisrblx wants to merge 2 commits intomasterfrom
Improve-luau.set-rendering-for-string-members-(keys)-which-are-valid-identifiers
Open

Improve luau.set rendering for string members (keys) which are valid identifiers#548
osyrisrblx wants to merge 2 commits intomasterfrom
Improve-luau.set-rendering-for-string-members-(keys)-which-are-valid-identifiers

Conversation

@osyrisrblx
Copy link
Member

Input

const set = new Set(["a", "b", "c", "this has spaces", "1234"]);

Before

local set = {
	["a"] = true,
	["b"] = true,
	["c"] = true,
	["this has spaces"] = true,
	["1234"] = true,
}

After

local set = {
	a = true,
	b = true,
	c = true,
	["this has spaces"] = true,
	["1234"] = true,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant