News for hackers. Stuff that matters.
Re:The evolution of Lua by ansible on Tuesday May 01, 2012 @05:31AM (#3913588)
If I were using a Lisp these days, I'd really miss the Lua table.

Lisp is built around cons cells and the linked list. But it has seperate containers of various types.

Lua is built around the Lua table, which can function as a list, array, and dictionary/hash table. You can then build any other data structure from tables easily. With a metatable, you then also get read-only tables, objects and classes, and more.

Now if someone were to design a modern Lisp based around tables...

Re:The evolution of Lua by gruseom on Tuesday May 01, 2012 @04:06PM (#3916160)
Now if someone were to design a modern Lisp based around tables...

I agree, it's an intriguing possibility. There was a thread about this a while ago:

http://news.ycombinator.com/item?id=3291065

Re:The evolution of Lua by moonchrome on Tuesday May 01, 2012 @07:16AM (#3913781)
>Now if someone were to design a modern Lisp based around tables...

Check out clojure - advanced data structures/primitives + immutability(functional programming)

Re:The evolution of Lua by ansible on Tuesday May 01, 2012 @07:56AM (#3913889)
I don't really want multiple data structure primatives though, just the one. And have the language built up around it.

I have been mulling over better support for immutable data structures in Lua, but I haven't figured out a good and clean design yet.