-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
predicate should accept a list of booleans #2472
Comments
Considering we already have list comprehension, the following should be intuitively correct:
At the moment this is illegal. |
Hi kindlychung, |
In
|
I see. Is it too late to introduce a new list type with homogeneous types at this stage? |
Actually I think it can still work. Basically we can just treat any non-booleans as false. For example |
|
Writing a type of |
Could you please give an example of "a predicate without a filter"? I tried this:
An implicit |
Hm, it seems converting a number to boolean is not allowed in 2.0:
|
Thanks for introducing some convenience syntax for us, but we are now trying to be compatible with the openCypher firstly. Your proposed syntax about the |
The current syntax is:
Which can lead to bizzar statements like:
I'd very much prefer:
The text was updated successfully, but these errors were encountered: