Skip to content

Deprecate & operator with tag patterns and require using AND #5661

Closed

Description

@pekkaklarck

Robot supports AND, OR and NOT as Boolean operators with tag patterns. In addition to them, & can be used as an alias for AND. When discussing about deprecating and removing operator usages like XANDY in favor of X AND Y or xANDy (#5657, #5656), we agreed that we should deprecate and remove the & alias as well. The main reasons are:

  • It is strange that only one operator has such alias. We could consider adding aliases for others as well, but there have been no requests for them and we also agreed that text is easier to understand than symbols.
  • It is generally better to have only one syntax for one purpose.
  • Users in general don't seem to even know about this alias. It can thus cause problems with tags containing & as a literal character.

In practice & doesn't cause as much problems as considering tags like PORT to be a pattern (#5656), but it has no real benefits either and deprecating it now when we anyway need to implement a deprecation system tag patterns is easy.

This issue covers deprecating & in RF 7.5. A separate issue will be submitted for removing it in RF 8.0.

Activity

  1. added this to the v7.5 milestone on Apr 27, 2026
  2. self-assigned this
    on Apr 27, 2026
  3. added a commit that references this issue on Apr 27, 2026
    c064b22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions