Skip to content

Hint to user to use == if they used = in pre/post conditions #150

Open

Description

@ssahli

I made an error when writing a precondition x: int = 0, when it should have been x: int == 0.

I feel like this could be a common mistake people will make. How about we give a suggestion to the user: "did you mean to use == instead of =?"

Activity

  1. selenesal commented on Jul 27, 2016

    @selenesal
    Contributor

    This will be noted in the documentation. Obviously we won't want to leave them guessing as to what the operators or format is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions