03-01-2023, 05:24 PM
(03-01-2023, 04:00 PM)bplus Wrote: You folks have sure wandered far from the main subject problem of OP.
Associative arrays really aren't a solution to arrays of arrays but are an interesting topic on their own.
TempodBasic and I have kicked them around with a Rosetta Code Challenge on the old forum.
Too bad a new thread on that subject was not started.
I agree that associative arrays on their own are not a solution.
If you see my original reply in this thread, what I suggested wasn't an associative array, but a data structure similar to objects in JavaScript - and not OO, with methods / classes / etc., but just a data structure allowing nested arrays, dictionaries & objects, and functions for serializing/deserializing to & from JSON (which would solve the issue of persistence, since reading/writing JSON as text is trivial).