View Single Post
03-18-24, 07:45 PM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
It's purely cosmetic and hinders readability. Extreme cases like shortening variable names to a single letter may run afoul of Blizzard's addon policy due to their obfuscation rule. You can only really get away with it when writing for macros where the size constraint is an issue. There are other size optimizations I used in the code I posted like parenthesis are optional when the only argument to calling a function is a literal string or table constructor. For the most part, it's best to stick to a more normalized style when writing addons.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 03-18-24 at 07:55 PM.
  Reply With Quote