Should I put my functions in a table?

Hello Cookie Tech!

Today I’d like to ask if putting functions in a table is a good idea?

If you don’t know what I mean, refer to this code:

local funcs = {}
function funcs:PrintMessage(text)
print(text)
end

funcs:PrintMessage(“Hello world!”)

So, what’s your answers? Use the poll below!

Is this a good idea?
  • Yes
  • No

0 voters

Yes, function tables could be useful in specific situations. It’s a good way of organization as well.

2 Likes