Skip to content

Better handling of reserved Gobra keywords #118

@wytseoortwijn

Description

@wytseoortwijn

The specification language of Gobra has several extra reserved keywords, in addition to the ones already reserved by Go. One example would be the get(e) destructor for expressions e of an option type. However, it could be very annoying to have some of these keywords, like get, reserved.

One possibility to fix this, is to make gobra a reserved keyword and to write e.g. gobra.get(...) instead of get(...); and likewise with all other keywords reserved by Gobra.

One disadvantage of this however, is that it might somewhat clutter expressions. For example some(e1 union e2 setminus e3) would become gobra.some(e1 gobra.union e2 gobra.setminus e3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions