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

Syntax for using a resource can be simplified #519

Open
JonathanDn opened this issue Oct 17, 2020 · 0 comments
Open

Syntax for using a resource can be simplified #519

JonathanDn opened this issue Oct 17, 2020 · 0 comments
Assignees

Comments

@JonathanDn
Copy link

JonathanDn commented Oct 17, 2020

I read in @YonatanKra's article how to use resources in askQL and the syntax for using a resource can be simplified as it currently required typing 2 function identifiers while 1 could be enough. The current syntax:
image

The suggested syntax:

ask {
    names: map((name, i) {...})
}

There is no need on the user, consumer side to write map(fun(...)){...} , that is my suggestion.

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

2 participants