Skip to content

Operators table #2

Description

@PavelVozenilek

The semantics and precedence levels of the operators inherited from C should be the same. If you spot any "unintuitive" precedence parsing, send me feedback.

There's nothing intuitive in operators precedence. You may drop this feature completely and nothing will be lost. On the contrary, the code would be easier to grasp.

From Pony language:

Pony takes a different approach and outlaws infix precedence. Any expression where more than one infix operator is used must use parentheses to remove the ambiguity. If you fail to do this the compiler will complain.

Addition/subtraction and multiplication/division may be exception to this rule.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions