WoWInterface - View Single Post - How could this be written neater?
View Single Post
05-08-17, 07:05 AM   #11
A Rage Talon Dragon Guard
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 328
Originally Posted by Kkthnx View Post
Lmao @ please one's Lua linter! This is so true and has become a thing for me. I use Atom text editor and https://atom.io/packages/linter-lua-findglobals so I guess I am just so used to pleasing it

Also never thought of the whole _G = getfenv(0) deal. Incoming paranoia?
I call it _G-fetish

But in most cases upvalues and/or accessing globals via _G are a personal preference or even a style, people like weird things o_O
  Reply With Quote