Re:John Carmack working on Scheme as a VR scripting language
by JoshuaScholar on Wednesday July 01, 2015 @08:08AM
(#9811300)
In Lua "3"+4 is an error. Concatenation is a different operator than add, specifically to avoid confusing coersions.
[ Parent
| on HN ]
Re:John Carmack working on Scheme as a VR scripting language
by ggilles on Wednesday July 01, 2015 @08:35AM
(#9811407)
Try it:
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> ="3" + 4
7
Re:John Carmack working on Scheme as a VR scripting language
by JoshuaScholar on Wednesday July 01, 2015 @08:42AM
(#9811451)
Ah. Well at least there isn't a confusion between add and concat
"3"+4 is 7 4.."3" is "43"
"3hello"+4 is an error