Palindrome Checking with Lua
-
@scottalanmiller suggested, nay demanded, a new tradition be started of writing palindrome checkers in various languages, here's the thread:
http://mangolassi.it/topic/3833/palindrome-checking-with-php
Here is Lua:
io.write("Your palindrome is: ") pal=io.read() if pal == string.reverse(pal) then print("It's good."); else print("Fail"); end
-
Nice, thanks.
-
@scottalanmiller Are we a Lua fan or was that some sort of erotic thing I inadvertently took part in?
-
Never worked with Lua, wanted to see it in action
-
Lua is a nice language to work in.
I use it with the EverQuest emulator project I sometimes participate in developing for.
One of the main devs on the project implemented Lua a couple years ago and I like it a LOT better than the way Perl was implemented for the project.
-
@JaredBusch It reminds me a lot of Java meets BASIC, with a dash of Pascal. It's not a bad language, but I prefer C-style languages, my brain just works better with them. Lua is a decent language though.
-
Here is an example from the EQEmu project quest files
-
@tonyshowoff said:
@JaredBusch It reminds me a lot of Java meets BASIC, with a dash of Pascal. It's not a bad language, but I prefer C-style languages, my brain just works better with them. Lua is a decent language though.
I'm the same way, C-style works with my brain.