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

Improve usage of transform #10

Open
dlurton opened this issue Jun 1, 2020 · 0 comments
Open

Improve usage of transform #10

dlurton opened this issue Jun 1, 2020 · 0 comments

Comments

@dlurton
Copy link
Member

dlurton commented Jun 1, 2020

Having to cast the result of the generated transform function everywhere is a little cumbersome. For example:

val astExpr =  partiql_ast.transform(statement) as partiql_ast.statement

If PIG supported syntax like this, it be better:

val astExpr =  partiql_ast.transform<partiql_ast.statement>(statement)

The signature of transform would be something like:

inline fun <reified T: partiql_ast.partiql_ast_node> translate(element: IonElement)
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

1 participant