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

New Table Syntax? #29

Closed
tjcelaya opened this issue Sep 22, 2015 · 3 comments
Closed

New Table Syntax? #29

tjcelaya opened this issue Sep 22, 2015 · 3 comments
Labels

Comments

@tjcelaya
Copy link

http://www.kparc.com/d.txt shows +[a:2 3 4;b:abc]as an example for building a table but the repl currently fails withparse error. ']' expected.`

Will this syntax be supported? It doesn't seem to work on k4 so it might be new functionality for +[] but I can't test that.

@JohnEarnest
Copy link
Owner

I have not implemented k5's kdb features. Currently I don't see them as a high priority, and there isn't exactly abundant information available. There is still quite a bit of work to do on core language features like dmend, curried adverbs and support for date/time types.

@tlack
Copy link

tlack commented Sep 22, 2015

I think that's a wise decision.. for now at least! Leave it to secondary implementors.

But: I believe this is just table definition syntax. Surely this, being just a list of dictionaries (flipped) would be handy to use for all manner of operations?

As I've come to internalize table syntax, I find it to be a natural way to represent a surprising amount of things.

So: I agree, don't bother with select. But perhaps this specific lexer trick might be worthwhile.

Just a thought! Thanks again for your tireless work on this badboy.

@tjcelaya
Copy link
Author

Not sure if this is true but it was stated on #kq that "[a:...;b:...] in k5 is dictionary syntax" so I would venture to say that's a core language feature.

Hasty reply: the dictionary syntax works, it's the monadic + that fails. My apologies.

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

No branches or pull requests

3 participants