• Russ Cox's avatar
    strings: remove overengineered Compare implementation · fd4dc91a
    Russ Cox authored
    The function is here ONLY for symmetry with package bytes.
    This function should be used ONLY if it makes code clearer.
    It is not here for performance. Remove any performance benefit.
    
    If performance becomes an issue, the compiler should be fixed to
    recognize the three-way compare (for all comparable types)
    rather than encourage people to micro-optimize by using this function.
    
    Change-Id: I71f4130bce853f7aef724c6044d15def7987b457
    Reviewed-on: https://go-review.googlesource.com/3012Reviewed-by: 's avatarRob Pike <r@golang.org>
    fd4dc91a
strings_decl.go 339 Bytes