Jump to content

just a question


tosfera

Recommended Posts

Posted

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
Posted

I don't think they are functional in .lua .

But I also don't think they will cause lagg or increase speed.

Posted

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 ; :)

Posted
- 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. :D

Thanks!

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...