WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   ; (https://www.wowinterface.com/forums/showthread.php?t=22164)

Exawatt 04-15-09 11:05 AM

;
 
Is there a reason so many people use the semicolon in Lua? I mean, it's ignored by the compiler, right? So why even bother? Does it make coders more comfortable moving from C++/Java/etc.? Am I missing something?

I'm not saying it's wrong... just slightly confusing.

haste 04-15-09 11:49 AM

Most people do it because they have it as a habit. It's nothing more than that, but ironically semi-colons could prevent stupid mistakes if they were enforced in Lua.

Seerah 04-15-09 11:57 AM

It is just remnants from people who are already familiar with those languages. Those learning sometimes see it and don't quite understand that they're not necessary, because they're just learning, so they use them, too. Also, I believe that some authors choose to leave them in with macro scripts, when the code is all on one line, to visually separate things.

Bangerz 04-15-09 11:24 PM

I really need to just take the key off my keyboard.


All times are GMT -6. The time now is 06:58 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI