Skip to content

Roflex dev branch - #27

Open
Hugheth wants to merge 23 commits into
masterfrom
dev-roflex
Open

Roflex dev branch#27
Hugheth wants to merge 23 commits into
masterfrom
dev-roflex

Conversation

@Hugheth

Copy link
Copy Markdown
Contributor

No description provided.

Comment threadlib/AsyncUtils.lua
]]
function AsyncUtils.props(things)
local keys = TableUtils.keys(things)
local values =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the idea of using this instead of TableUtils.values?

Comment threadlib/ClassUtils.lua
for _, key in ipairs(keys) do
local value = instance[key]
if not first then
string = string .. ", "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't you just table.concat the k=v pairs together?

Comment threadlib/ClassUtils.lua
return string .. ")"
end

function ClassUtils.makeClass(name, constructor, include)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does include mean? Name and constructor are pretty obvious, but I think include could do with a comment explaining what is it (and maybe a better name - useDefaults?).

Sign up for freeto 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.

2 participants

@Hugheth@ckdavid