View Single Post
07-19-18, 07:15 AM   #27
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by Simca View Post
It seems like the UI devs prefer the syntax where you pull down a table of results and use the individual parts you need rather than doing 'local _, _, thingA, _, _, _, _, thingB = SomeRandomApi()'.
I can actually agree with this part. I have used a table to get function returns before, but it was a reusable table in a custom pool function. I have always not liked using an underscore as a universal dump variable. It has caused many minor issues over the course of addon development over the years. The wall of shame link in my signature exposes why it’s an issue.

However, relying on supposed efficiency to excuse inefficiency isn’t a great coding practice. It’s like tossing bottles at a campsite because the park you’re at has a world class janitor army. That’s still littering.
  Reply With Quote