tosfera Posted March 1, 2013 Posted March 1, 2013 Hey, I'm used to end my lines with a " ; " in other languages, does it have any inpact on the speed of loading scripts or security in them if you do use them in your lua codes? or is it more like; what you prefer? Thanks in advance!
Moderators IIYAMA Posted March 1, 2013 Moderators Posted March 1, 2013 I don't think they are functional in .lua . But I also don't think they will cause lagg or increase speed.
Metall Posted March 1, 2013 Posted March 1, 2013 I used to program Java, when i used ";" Well, here you don't have to and i never do that in Lua, i think it won't give any errors, if your more familiar with it, but i just go without ;
tosfera Posted March 1, 2013 Author Posted March 1, 2013 - java/php yes. - lua no. I know wich languages uses them, I'm known with; Java, Javascript (JS, Jquery, Ajax), asp.net, c#, c++, vb, php, html, sql, css, lua and some more small language's like x code. But I was more interested in the part where you said that it didn't matter for the preformance of the scripts. Cause in school they are trying to test me, it takes me 2 minutes to switch from lua to asp.net. Because of the ;. So if it doens't matter, I would rather do it then leave it. Mind make switching alot easier. Thanks!
Anderl Posted March 1, 2013 Posted March 1, 2013 You can use ";" in Lua, but it's just a matter of "style". If you want to use it, use it; if not, then just don't use it - it's optional.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now