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 to match vectors #89

Open
shashi opened this issue Nov 15, 2021 · 1 comment
Open

Syntax to match vectors #89

shashi opened this issue Nov 15, 2021 · 1 comment

Comments

@shashi
Copy link
Member

shashi commented Nov 15, 2021

SymbolicUtils.Code module creates @matchable types, but many of the types there have vector fields, but we don't have syntax to match things within vectors. It would be nice to have something like:

Let([~x..., ~a  ~b::predicate, ~z...], ~b)
@0x0f0f0f
Copy link
Member

It would be nice to match on vectors.
Other solutions such as https://github.com/kmsquire/Match.jl and https://github.com/RelationalAI-oss/Rematch.jl allow matching on arrays.

This feature has to be carefully designed. Should iterators be allowed? What about the shape of the arrays? Should we adopt a strict shape matching policy such that the shape of the pattern should be the same shape of the matched array? Or should it be permissive on shape? How can we support shape and arrays in ematching?

@0x0f0f0f 0x0f0f0f mentioned this issue Aug 6, 2024
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