Moderators: They make you lose count(Longest thread still alive!)

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
print(121,"it is apparently bad practice to concatenate strings in the print function when using lua, the reason why is because a , has the same effect without wasting time on the concatenation")
io.write("the language is monkey code, its a language designed to write games and it compiles in c++, java and html+javascript or flash. I might have forgotten some. However as fun as it might sound it looks like it has all the bad things about all the languages it compiles into because of the fact it needs to be able to compile into them as a result I won't recommend it \n")
print("it also got rid of the for loop and replaces it with another loop that is basically an inverted while loop.")
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
System.out.println(122 + "Java's for loop is basically a while loop whose syntax lets you define a variable, increment it, and check whether or not to break out of the loop in one line.")
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
113 that is still more sensible then writing a while something like this:
WhileExpression
Statements...

Wend

and the other like this
Repeat
Statements...
UntilExpression
or if you want a loop that never stops you can write this:
Repeat
Statements...
Forever

because while true is too hard >_>
(that makes me think about glovepie where I always end up using an if true do thingy if I wanted a never ending loop instead of a whole true do loop because reasons)
edit: as it turns out it acctually does have a for loop and even a foreachin loop, but those where not in the tutorial and instead of a for loop it showed the repeat loop >_>
I however also found this masterpiece
Code:
Function Add( value:Int )
End

Function Add( value:Float )
End

Function Add( value:String )
End

Function Main()
    Add( 10 )   'calls first version as 10 is of type Int
    Add( 10.0 ) 'calls second version as 10.0 is of type Float
    Add( "10" ) 'calls third version as "10" is of type String
End
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
2 and I kind of get the idea behind it but it just gets so fricking messy so fricking quick especially since the amount also influence which it calls.
For the same reason I hate javascripts use of the + thing
Code:
var test1=1+"1"
test1=test1*1
//test1==11 if I am not mistaken
var test2=1+1
test2=test2*1
//test2==2
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
4 oh so we have != ~= and monkey uses <>
did I also tell that if you install the free monkey code thing it contains a folder called bananas?