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 PS: Otherwise I agree that T[int] is nicer than T(int). -- 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/a7a4d145-8598-4abe-9afe-40f6736da73cn%40googlegroups.com.