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

Implement "Comma, ok" special assignment for maps #97

Open
quasilyte opened this issue Jul 6, 2017 · 0 comments
Open

Implement "Comma, ok" special assignment for maps #97

quasilyte opened this issue Jul 6, 2017 · 0 comments

Comments

@quasilyte
Copy link
Owner

quasilyte commented Jul 6, 2017

https://golang.org/ref/spec#Index_expressions

An index expression on a map a of type map[K]V used in an
assignment or initialization of the special form

v, ok = a[x]
v, ok := a[x]
var v, ok = a[x]
var v, ok T = a[x]
@quasilyte quasilyte added this to the PreRelease2 milestone Jul 6, 2017
@quasilyte quasilyte changed the title "Comma, ok" for maps Implement "Comma, ok" special assignment for maps Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant