Skip to content

math incorrect error on logical operations #6096

@mqudsi

Description

@mqudsi

We've previously decided that the new math will not support boolean/logical operations (#4777), but it currently emits an error that isn't very helpful or strictly accurate:

mqudsi@Blitzkrieg /m/c/U/Mahmoud> math "42 > 1337"
math: Error: Missing operator
'42 > 1337'
    ^

especially because that helpful caret is, in fact, pointing pointing to an operator.. just not one that is supported.

We should probably catch some common boolean/logical operations and print a more helpful message telling the user to use test instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions