On Thu, Jun 18, 2020 at 9:38 AM Павел Кошелев <pavel2...@gmail.com> wrote: > > Hello, I think, that default brackets will make code much less > understandable. I'm suggesting to use angle brackets instead and omit the > "type" word. > > For example, following function seems much more succinct for me: func > Print<T> (s []T) {}
https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#why-not-use-the-syntax-like-c_and-java https://groups.google.com/d/msg/golang-nuts/Rumm5HFhg_Q/baIq7eDgBgAJ Ian -- 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/CAOyqgcVLhLyM2vei9bG7kUiLDHPnh%3DsR-fmU0uwtW19asQQ9%2BQ%40mail.gmail.com.