Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Add annotation to specify operators precedence. #69

Closed
@4lex1v

Description

@4lex1v

Is it possible to add some kind of annotation to control the precedence of functions with symbolic names, something similar to what Haskell has?

implicit class ArrowAssoc[A](left: A) {
  @infixr(6) def ->[B](right: B): (A, B) = (left, right)
}

So the code like this: "string" -> "value" -> 10, would be parsed as ("string" -> ("value" -> 10)).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions