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:
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)
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.
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...