Posted: Wed Nov 15, 2006 10:15 am Post subject: (No subject)
bugzpodder wrote:
python, perl, php (you can get away with basics, but dont expect to be a master at it after a day)
With all due respect, none of these languages are in the same ballpark as those mentioned earlier. At some level, they all have quirky, inconsistent syntax and semantics that takes quite some time to come to grips with.
Sponsor Sponsor
wtd
Posted: Wed Nov 15, 2006 5:03 pm Post subject: (No subject)
A bit of code, just for fun.
Let's create a variable!
Lua:
code:
foo = 42
Tcl:
code:
set foo 42
Io:
code:
foo := 42
Let's print it!
Lua:
code:
print(foo)
Tcl:
code:
puts $foo
Io:
code:
foo println
Let's read in a string!
Lua:
code:
line = io.read()
Tcl:
code:
set line [gets stdin]
Io:
code:
line := File standardInput readLine
Let's read in a number!
Lua:
code:
num = io.read("*number")
Tcl:
code:
set num [scan [gets stdin] "%f"]
Io:
code:
num := File standardInput readLine asNumber
Let's make it a function!
Lua:
code:
function read_number()
return io.read("*number")
end