View Single Post
01-26-18, 03:04 PM   #12
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Originally Posted by gempir View Post
Lua Code:
  1. local F, G, V = unpack(select(2, ...))
Your code has two variables for the addon name (name, addon)
And two for the addon table (ns, core)
So for me it does not make sense to have different names for the same variables.
And as you say select will always unpack core so why not use it?

It would highly increase readability.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote