length is unintuitively recursive
In addressing #17 I ran into this
database = [ { "artist": "Ludwig Van Beethoven", "title": "Moonlight Sonata" }, { "artist": "Johann Pachelbel", "title": "Canon in D Major" }, { "artist": "Johann Sebastian Bach", "title": "Air on a G String" } ] ``
echo database.length()
which emitted 6. In the JS world we'd probably think this to be 3.
Indeed :+1:
Any progress on this, eh? It's such a promising little pet project you have here.. just have some quirks to work out ;)
How about using bash arrays instead of name mangling variables..?
got around to try to fix it, in pull #28 .. :p
Sorry to revive such an old thread; I just have to make this clear to first-time visitors:
The commit above (that Fixes #19) was merged into a branch bash-arrays.
So this issue's open because it's still not fixed on the master branch.