Skip to content

Make augment import syntax be augment import. #3420

@lrhn

Description

@lrhn

The current syntax for importing augmentation libraries is import augment <uri>.

That's currently unambiguous, but would not be so if we introduce import shorthand without quotes, like #649.

I suggest changing it to augment import, which is not unambiguous itself because import is only a built-in identifier.
If we make augment a built-in identifier too, in all libraries, it will be unambiguous, needing no lookahead, since built-in identifiers cannot be parsed as a type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions