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!

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

  • Moderators
Posted

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

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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

  • Moderators
Posted

- java/php yes.

- lua no.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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!

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

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.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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...