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

Implementing addition operation for links with compact syntax and short doublet notation support #382

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

Comments

@Konard
Copy link
Member

Konard commented Jun 12, 2023

Develop a solution to support the addition operation for links, aiming to provide a compact syntax and short notation for doublets in programming languages that do not support short syntactic notation for creating tuples. Consider the possibility of using a decorator that returns a structure/class Doublet with a defined + operator, storing a reference to the link storage and the doublet identifier, as well as its values.

Examples of operations with links and their analogs with string concatenation:

Doublets Expression String Concatenation
1 + 1 = (1 1) "1" + "1" = "11"
(1 2) + (3 4) = ((1 2) (3 4)) "12" + "34" = "1234"
((a b) c) + (e (d f)) = (((a b) c) (e (d f))) "abc" + "edf" = "abcedf"
@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