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

Define Tuple type #54

Closed
kmoe opened this issue Jun 23, 2021 · 3 comments
Closed

Define Tuple type #54

kmoe opened this issue Jun 23, 2021 · 3 comments
Labels
enhancement New feature or request types Issues and pull requests about our types abstraction and implementations.

Comments

@kmoe
Copy link
Member

kmoe commented Jun 23, 2021

Implementation similar to @bflad 's Set type. Can't do this in SDKv2, but parity w/ protocol.

@kmoe kmoe added the enhancement New feature or request label Jun 23, 2021
@paddycarver paddycarver added this to the v0.3.0 milestone Jul 27, 2021
@paddycarver paddycarver removed this from the v0.3.0 milestone Aug 30, 2021
@paddycarver paddycarver added the types Issues and pull requests about our types abstraction and implementations. label Sep 21, 2021
@apparentlymart
Copy link

The tuple type kind is honestly rather odd and isn't something I'd generally expect folks to write in a type constraint... it's mainly there to fill in the missing spot that made our type system not a superset of JSON's, and used in dynamically-typed situations like the argument to jsonencode, or similar sorts of things like the kubernetes_manifest resource type in the hashicorp/kubernetes provider.

We did still include type constraint syntax for it in the language, more for completeness than anything else, and a similar "completeness" argument could apply here too, but I'd guess it's more likely that tuples will appear mainly as part of arguments that are dynamically-typed and so provider code will probably end up converting it immediately to []interface{} by reflection anyway. 🤔

@bookshelfdave
Copy link
Contributor

We're going to close this for now. If there's a need for tuples at some point in the future, please create a new issue with the use case.

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request types Issues and pull requests about our types abstraction and implementations.
Projects
None yet
Development

No branches or pull requests

4 participants