Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

length is unintuitively recursive #19

Open
kristopolous opened this issue May 26, 2012 · 4 comments
Open

length is unintuitively recursive #19

kristopolous opened this issue May 26, 2012 · 4 comments
Assignees

Comments

@kristopolous
Copy link
Owner

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.

@ghost ghost assigned kristopolous May 26, 2012
@kaos
Copy link
Contributor

kaos commented May 24, 2013

Indeed 👍

Any progress on this, eh?
It's such a promising little pet project you have here.. just have some quirks to work out ;)

@kaos
Copy link
Contributor

kaos commented May 24, 2013

How about using bash arrays instead of name mangling variables..?

@kaos
Copy link
Contributor

kaos commented May 28, 2013

got around to try to fix it, in pull #28 .. :p

kaos added a commit to kaos/TickTick that referenced this issue May 29, 2013
@alexdantas
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants