Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Konard opened this issue Jun 12, 2023 · 0 comments
Open
Labels
question Further information is requested

Comments

@Konard
Copy link
Member

Konard commented Jun 12, 2023

@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]"

@Konard Konard added the question Further information is requested label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant