Skip to content

Support values requiring evaluation in with modifiers #701

Closed
@tsandall

Description

Today you must assign values requiring evaluation to local variables before using them in with modifiers. For example, the following is not allowed:

foo = {"bar": 1}; data.foo with input as foo.bar

The easiest way to handle this would be to rewrite the with modifiers early in compilation the same way we do for rule heads, comprehension terms, etc.

So, for example, the query above would become:

foo = {"bar": 1}; __local0__ = foo.bar; data.foo with input as __local0__

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions