• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...