tosfera Posted March 1, 2013 Share 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! Link to comment
Moderators IIYAMA Posted March 1, 2013 Moderators Share 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. Link to comment
Metall Posted March 1, 2013 Share 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 ; Link to comment
Moderators IIYAMA Posted March 1, 2013 Moderators Share Posted March 1, 2013 - java/php yes. - lua no. Link to comment
tosfera Posted March 1, 2013 Author Share 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! Link to comment
Anderl Posted March 1, 2013 Share 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. Link to comment
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