Proposal: Rename `WITH NAME` to `AS` in library imports

Motivation:

  • We already use AS for other purposes. Less special markers simplifies the syntax.
  • Python uses as for similar purposes making AS familiar for people with Python experience.

This would be a backwards incompatible change and cannot be done without a deprecation period. I believe we could simply support AS in addition to WITH NAME in RF 5.1 and then do actual deprecation later.

For more details see issue #4369. Comments are appreciated both directly to the issue and here.

2 Likes

Sounds like a good idea to me. I also think robocop can help with the deprecation warning and tidy could help with migration.

1 Like