Skip to content

Allow sets to be dereferenced #243

Closed
@tsandall

Description

Today, queries cannot dereference sets (doing so results in a runtime error). It would be nice if this wasn't the case.

Instead of:

p[x], x.foo = "bar"

We could write:

p[_].foo = "bar"

To deal with this, we will bind set references to their value. We can explain this as s[x].foo = bar is syntactic sugar for s[x], x.foo = bar.

With respect to implementation, we must handle the following case:

p = {false}
p[x], ... # evaluation should not stop even though p[x] will be bound to false.

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