Skip to content

Introducing the () operator for explicit association indication in code #383

Description

@konard

@netkeep80 proposes to add the () operator for explicitly associating data in text markup. For example:

"11" = "1"("1")

The relative addressing operator already exists [], but it assumes addressing in a map, whereas the () operator would be used for defining tuples.

The advantage of using () is that the syntax precisely indicates which data is associated with each other. For example:

1(2(3)) != 1(2)(3)

We can use either the () operator or [], the main thing is that the semantics are clearly distinct in a single context. If we are talking about an API, we can use the () operator. If we are talking about a relationship name, we can use the [] operator, for example:

"abc[def][point[x]]"
"calc[window][x]"

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions