Should cnquery warn users about wrong syntax within predicates/assertions? #435
Unanswered
mondoo-Alexander
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Staying consistent with TypeScript has it's advantages. Using Therefore, I think it would be reasonable to return a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when I for example mistype a query and end up with the following:
users.where( uid = '82' )
...I will get the same result as if I had typed:
users
(or the olderusers.list
)This happens because I wrote
=
instead of==
, which would have returned the expected result. In Typescript, it seems to do the exact same as here, whereas it does not work and give the user an error message in C#.Should the user be warned that their query was faulty or whether we want to keep this behavior as the default?
Beta Was this translation helpful? Give feedback.
All reactions