askql icon indicating copy to clipboard operation
askql copied to clipboard

Syntax for using a resource can be simplified

Open JonathanDn opened this issue 4 years ago • 0 comments

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.

JonathanDn avatar Oct 17 '20 08:10 JonathanDn