proposal: spec: let := support any l-value that = supports
(Pulling this specifically out of #377, the general `:=` bug) This proposal is about permitting a struct field (and other such l-values) on the left side of `:=`, as long as there's a new variable being created (the usual `:=` rule). That is, permit the `t.i` here: ```go func foo() { var t struct { i int } t.i, x := 1, 2 ... } ``` This should be backwards compatible with Go 1. **Edit:** clarification: any l-value that `=` supports, not just struct fields. /cc @griesemer @ianlancetaylor
Posted by bradfitz on Feb 19, 2019, 10:24 PM
Tags
Related issues
- some bike vendor told me that the biggest problem with regular to ebike conversion was that regular bike frames were not strong enough to...
- I think of this as the kiosk economy.
- What a goofy comment.
- There's lots of evidence for positive influences of Caffeine on the body (some negative as well), especially the brain.
- Compose support in WSLc
- [RFC] Roadmap to v2.0
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
support (Other)
some bike vendor told me that the biggest problem with regular to ebike conversion was that regular bike frames were not strong enough to...
I think of this as the kiosk economy.
What a goofy comment.
There's lots of evidence for positive influences of Caffeine on the body (some negative as well), especially the brain.
Compose support in WSLc
[RFC] Roadmap to v2.0
[Feature]: Add TurboQuant Support for KV Cache Quantization
Support for AGENTS.md and .agents/skills/, the community has been asking since August 2025
proposal: spec: let := support any l-value that = supports
(Pulling this specifically out of #377, the general `:=` bug) This proposal is about permitting a struct field (and other such l-values) on the left side of `:=`, as long as there's a new variable being created (the usual `:=` rule). That is, permit the `t.i` here: ```go func foo() { var t struct { i int } t.i, x := 1, 2 ... } ``` This should be backwards compatible with Go 1. **Edit:** clarification: any l-value that `=` supports, not just struct fields. /cc @griesemer @ianlancetaylor
Comments (0)
No comments yet. Start the discussion.