• Robert Griesemer's avatar
    spec: permit "for range x" (no index variables) · 20ae6d9b
    Robert Griesemer authored
    This is a fully backward-compatible language change.
    
    There are not a lot of cases in the std library, but
    there are some. Arguably this makes the syntax a bit
    more regular - any trailing index variable that is _
    can be left away, and there's some analogy to type
    switches where the temporary can be left away.
    
    Implementation-wise the change should be trivial as
    it can be done completely syntactically. For instance,
    the respective change in go/parser is a dozen lines
    (see https://golang.org/cl/112970044 ).
    
    Fixes #6102.
    
    LGTM=iant, r, rsc
    R=r, rsc, iant, ken
    CC=golang-codereviews
    https://golang.org/cl/104680043
    20ae6d9b
Name
Last commit
Last update
..
articles Loading commit data...
codewalk Loading commit data...
devel Loading commit data...
gopher Loading commit data...
play Loading commit data...
progs Loading commit data...
asm.html Loading commit data...
cmd.html Loading commit data...
code.html Loading commit data...
contrib.html Loading commit data...
contribute.html Loading commit data...
debugging_with_gdb.html Loading commit data...
docs.html Loading commit data...
effective_go.html Loading commit data...
gccgo_contribute.html Loading commit data...
gccgo_install.html Loading commit data...
go-logo-black.png Loading commit data...
go-logo-blue.png Loading commit data...
go-logo-white.png Loading commit data...
go1.1.html Loading commit data...
go1.2.html Loading commit data...
go1.3.html Loading commit data...
go1.4.txt Loading commit data...
go1.html Loading commit data...
go1compat.html Loading commit data...
go_faq.html Loading commit data...
go_mem.html Loading commit data...
go_spec.html Loading commit data...
help.html Loading commit data...
ie.css Loading commit data...
install-source.html Loading commit data...
install.html Loading commit data...
logo-153x55.png Loading commit data...
root.html Loading commit data...
share.png Loading commit data...
sieve.gif Loading commit data...
tos.html Loading commit data...