generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: If there was one things you would change about lua

Previous Thread :: Next Thread 
xPRESIDENTx is not online. xPRESIDENTx
Joined: 10 Jun 2011
Total Posts: 815
10 Jan 2014 09:14 PM
What would it be?

I think I would say ope and close brackets, like this;

[function Turtle(yesh)


end]

Required open and close brackets.

And ; required at the end of lines.
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
10 Jan 2014 09:24 PM
Wat. Why required brackets and semicolons? I would add functionality to it's regex.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
10 Jan 2014 09:25 PM
1) The brackets idea is the stupidest thing I've ever heard of.
2) You can already use semicolons as a line delimiter, but they aren't required.
Report Abuse
xPRESIDENTx is not online. xPRESIDENTx
Joined: 10 Jun 2011
Total Posts: 815
10 Jan 2014 09:27 PM
Nice opinion, maybe you should spend time writing yours instead of telling me why mine are dumb :)
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Jan 2014 09:32 PM
Why would having a required semicolon at the end of each line (being optional as of now) make any difference?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jan 2014 09:45 PM
I would probably want tables and string indices to start at 0
Report Abuse
Majorhappenings is not online. Majorhappenings
Joined: 25 Dec 2013
Total Posts: 299
10 Jan 2014 09:45 PM
Because if you have had previous experience from a language like java, C++ and C# those languages require a semicolon at the end! why? it lets the computer know that it may go on to the next line. Kind

So lua allows it for users that are use to it. Im sure there is another reason too
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
10 Jan 2014 09:50 PM
Switch statements all the way.
Report Abuse
TigreBlood is not online. TigreBlood
Joined: 31 Jul 2011
Total Posts: 1107
10 Jan 2014 09:52 PM
i Would Change How U Know When U Say This

KohlADmin<> like It doesnt Make Any kohl Admins
Like i Would make it So it Does ..
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
10 Jan 2014 10:30 PM
+=
Report Abuse
xPRESIDENTx is not online. xPRESIDENTx
Joined: 10 Jun 2011
Total Posts: 815
10 Jan 2014 10:32 PM
you mean <=
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jan 2014 10:32 PM
^ How did I forget about that...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jan 2014 10:32 PM
was pointing to render...
ninjas always wanting to be pointed at
Report Abuse
Catblox is not online. Catblox
Joined: 23 Apr 2008
Total Posts: 2223
10 Jan 2014 10:33 PM
@Render,
Indeed, with -=, ++, and -- (maybe change comments to // like C) to round it out.

Also, switch statements built-in would be nice, even though you can hack one together with if-else.
Report Abuse
Majorhappenings is not online. Majorhappenings
Joined: 25 Dec 2013
Total Posts: 299
10 Jan 2014 11:11 PM
I like for loops set up like this better
step = 0.2
for(int i = 0; i<25; i++)
print(math.cos(step)*i))+100
end
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
11 Jan 2014 12:00 AM
Optional ability to create final variables and variables that could only hold certain types(i.e.

final PI = 3.14
int x = 4--Also helps you remember what type your variables are in your code
x = "hi">>Error: Cannot set type integer to type variable
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
11 Jan 2014 12:01 AM
type string*
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
11 Jan 2014 12:07 AM
^ +1

EOS db 0x00 ;End of String Marker
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
11 Jan 2014 12:32 AM
"you mean <="

no, he means += and I agree with him.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
11 Jan 2014 12:39 AM
+= and ++? Aw yes.

Also a way to get the total number of indexes in a table. Kind of like the # operator except it counts _every_ index.
Report Abuse
BreachedSecurity is not online. BreachedSecurity
Joined: 18 Feb 2013
Total Posts: 156
11 Jan 2014 12:41 AM
President, please realize that you are not a decent programmer. Although the question, in itself, is good, the first thing you wish to change is asinine, and the second can already be optionally done. Not to mention that you frequently go to other threads acting like you know what you're talking about and only cause problems.

Not once in all of your rambling did you even come close to making any sensical statements; everyone who has, and will, read this thread is now dumber because of you. I wish you the best of luck, and may God have mercy on your soul.
Report Abuse
Flaimus is not online. Flaimus
Joined: 14 Dec 2009
Total Posts: 1035
11 Jan 2014 01:05 AM
@Breach; Hahaha, I know that quote (though, it is slightly edited...and shortened).

Anyways, most of you (if not all of you) don't seem to realize that Roblox asserts very little control over Lua, and (unless I missed one) Roblox has only added methods to Roblox-Lua to make it more efficient. I don't really recall Roblox ever actually changing anything that Lua already has in place.

Now, if you want Lua to change, then why did you come and complain about it on Roblox?
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
11 Jan 2014 01:10 AM
We aren't complaining about it, the title even says it. The title says that we would have just done something differently, it doesn't state this is a complaint thread and there is nothing about complaints in the OP either.
Report Abuse
Flaimus is not online. Flaimus
Joined: 14 Dec 2009
Total Posts: 1035
11 Jan 2014 01:13 AM
Complaint: a statement that a situation is unsatisfactory or unacceptable.

By saying that you would have done something differently, that would fall under stating that a situation is unsatisfactory or unacceptable. Thus, this whole thread (including my posts) are complaints.
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
11 Jan 2014 01:15 AM
Flaimus, oh God... you're acting just like the op right now.

EOS db 0x00 ;End of String Marker
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image