Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Add tuples the good way #4

Open
WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Open

Add tuples the good way #4

WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Labels
↻ breaking Suggestions or fixes that are breaking changes in some way. • enhancement New feature or request # prioritize Issues that are more urgent than others

Comments

@WilliamRagstad
Copy link
Member

WilliamRagstad commented Jan 27, 2022

So a tulle is simply a static data container. So (10) for example only holds the value 10, which 10 also does, hence they are equal. This is also true from a mathematical standpoint.
The interesting part is adding tuples of more elements in the same fashion. So ditching old thought of special syntax for tuple values, and using our good old' parenthesis.
Much like done in kesh and their data notation format. (Future container data types will follow similar syntax)

10 == 10 # trivial
10 == (10) # true, single element tuple cast to single expression
10 == (10, 0) # false, cannot compare integer and tuple of integers
(10, 0) == (10, 0) # trivial
@WilliamRagstad WilliamRagstad added • enhancement New feature or request # prioritize Issues that are more urgent than others ↻ breaking Suggestions or fixes that are breaking changes in some way. labels Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
↻ breaking Suggestions or fixes that are breaking changes in some way. • enhancement New feature or request # prioritize Issues that are more urgent than others
Projects
None yet
Development

No branches or pull requests

1 participant