On Fri, Jul 17, 2020 at 8:28 AM Dominique Devienne <ddevie...@gmail.com> wrote: > > On Tuesday, July 14, 2020 at 11:56:01 PM UTC+2 gri wrote: >> >> Not unexpectedly, many people raised concerns about the syntax, specifically >> the choice of parentheses for type parameter declarations and generic type >> and function instantiations. > > > Nobody mentioned D's generics? https://dlang.org/spec/template.html > > The exclamation mark meaning "instantiate" reads well IMHO, > and the simpler single-type-parameter syntax omitting parens reads even > better, > T!int is T instantiated (as in now, "at this instant"!) with int. FWIW, --DD
For the record, we did look at D's generics syntax. It seems to work syntactically, since ! is not a binary operator, but nobody was really happy with how it looked on the page. It's not a bad approach, it just doesn't seem like the best choice at this time. 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/CAOyqgcWwVL1qRezqN_XVq3N3hdXc%2BRWOEph9T96wTo13E5tFmw%40mail.gmail.com.