On Wed, May 4, 2022 at 10:10 PM Ian Lance Taylor <i...@golang.org> wrote:
> I can only give some personal opinions. Others will disagree. And my > opinions change over time, and could well be mistaken. > > I think that deciding that := declares a single variable in a > for/range statement was a mistake (https://go.dev/issue/20733). > > I think that naked return statements in functions with named result > parameters was a mistake (but named result parameters in themselves > are useful). > > I think that ranging over strings may have been a mistake. I go back > and forth on that. > > I think that wrapping on integer overflow was a mistake (it should panic). > > I think that making "var i = 1 / 0" a compile-time error was a > mistake. Similarly for `"abc"[3]`. > > Let's not even get started on the standard library. Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-XaNHpP6uBgyLTgcCOZux2F2-_Qu2gu1a6LbKX5%2BEBfgA%40mail.gmail.com.