• Robert Griesemer's avatar
    spec: clarify section on string types · cc06593c
    Robert Griesemer authored
    Strings happen to be represented similarly to
    byte slices internally, but they don't quite
    behave like them: While strings can be indexed,
    sliced, and have their len() taken like byte
    slices, string elements are not addressable,
    make() and cap() is not supported, range loops
    operate differently, and they are immutable (and
    thus behave like values rather then references).
    
    Fixes #4018.
    
    R=r, rsc, iant, ken
    CC=golang-dev
    https://golang.org/cl/6503116
    cc06593c
go_spec.html 165 KB