On Sat, Mar 14, 2009 at 07:25, Michael Nordman <[email protected]> wrote: > Taking this to the natural conclusion... append([1, "two", blob, ['fee', > 'fi', 'fo', 4]])... could have the obvious meaning
Just note that nested arrays aren't necessarily acyclic, so in the implementation, you'll have to be careful to avoid the infinite loop if a[0] == b and b[0] == a. The base/common/js_marshal does something similar, in terms of checking for infinite loops. It might be simpler for the initial (official) version to just take arrays of (string | blob | int), and hold off implementing nested arrays until if and when there's enormous popular demand for them.
