News for hackers. Stuff that matters.
Re:Giving up on Julia by eternalban on Friday May 13, 2016 @07:29PM (#11693859)
So is Lua.
Re:Giving up on Julia by bdowling on Friday May 13, 2016 @08:11PM (#11693980)
Lua tables are more interesting than that. You can have an table that is indexed by any supported type. That means tables indexed by positive or negative integers, floating point values, references to other objects or other tables, true, false, strings, coroutines, and external memory references can all be indexes. You can also have a single table indexed by any combination of these.
Re:Giving up on Julia by eternalban on Friday May 13, 2016 @08:25PM (#11694016)
Isn't that technically a hashtable and not an array?
Re:Giving up on Julia by bdowling on Friday May 13, 2016 @09:24PM (#11694180)
In Lua the same data structure is used for both. The implementation optimizes the data structure like an array when you use a range of non-negative integers as indexes.