linksplatform / linksplatform/Data.Doublets

Introducing the () operator for explicit association indication in code

Open
#383 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the existing [] relative-addressing implementation and its semantics, then define and test how () distinguishes tuple association from map addressing; done means the two forms have clearly distinct semantics in one context.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.