"Paul Graham is doing Arc. Why can’t I have fun too?" (p.4)
oh-oh, the floodgates are open. One day, there will be as many lisps as there are lisp programmers. Which is not necessarily a bad thing. It might even be inevitable.
I don't get the difference between foo[bar] and foo.bar ... why not use only one? Doesn't the context determine whether you're setting or retrieving a value?
(= foo[bar] "value")
vs
(prn foo[bar])
At least, arc makes no distinction:
(= foo (table))
(= foo!bar 123)
(prn foo!bar)
does what you would expect. But it's true that arc syntax for accessing nested tables
foo!bar
is awkward, in particular because it can't be chained. There's no syntax for
((foo 'bar) 'toto)
because
foo!bar!toto
expands to
(foo 'bar 'toto)
and that throws an error. I may well be missing some tricks, but deeply nested structures appear to be difficult to use in Arc, and it would be great to fix this. It would be great to write something like
foo[bar][toto]
And arc's exclamation marks suck as syntax: they make the code look way too urgent and excited.