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

go/types: make AssignableTo work for tuples #7692

Closed
griesemer opened this issue Apr 2, 2014 · 2 comments
Closed

go/types: make AssignableTo work for tuples #7692

griesemer opened this issue Apr 2, 2014 · 2 comments
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@griesemer
Copy link
Contributor

This is feature request, not a bug.

By adonovan:

"Assignable(tuple, tuple) should probably implement element-wise assignability
since that's the effective semantics when you return a multi-valued expression or
value,ok expression.    It comes up in my refactoring tool, I want to ask: can I assign
this expr (multi-valued) to this Signature.Result()?  It would be convenient if it
worked for tuples.  Not a big deal though."

(personal e-mail from 4/1/2014)

(This may be useful to do, especially if it would simplify checking of return
statements, etc. and cases where the lhs is multi-valued, and the rhs is a (single)
tuple).
@griesemer griesemer self-assigned this Apr 2, 2014
@bradfitz bradfitz removed the new label Dec 18, 2014
@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc removed the release-none label Apr 10, 2015
@rsc rsc changed the title go.tools/go.types: make AssignableTo work for tuples x/tools/go.types: make AssignableTo work for tuples Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@rsc rsc removed the repo-tools label Apr 14, 2015
@griesemer griesemer changed the title x/tools/go.types: make AssignableTo work for tuples go/types: make AssignableTo work for tuples Jul 31, 2015
@griesemer
Copy link
Contributor Author

Re-evaluate and make decision for 1.9.

@griesemer griesemer modified the milestones: Go1.9, Unreleased Feb 25, 2017
@griesemer griesemer added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Feb 25, 2017
@griesemer griesemer modified the milestones: Unplanned, Go1.9 Mar 13, 2017
@griesemer
Copy link
Contributor Author

I'm going to close this for now. @alandonovan, if you still think this is important to have, please re-open, mark for Go 1.11 and "early-in-cycle". Thanks.

@golang golang locked and limited conversation to collaborators Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

4 participants