It really comes down to programming style and system overhead. It's all a tradeoff between ease of writing code and running lightweight. It's like comparing ANSI C and VBasic.
BTW, I have been known to use this style of toggling.
Code:
frame[frame:IsShown() and "Hide" or "Show"](frame);