On Mon, Jul 20, 2020 at 9:41 AM Rei Roldan <rarol...@gmail.com> wrote: > > I agree, I prefer the D syntax as well. > > type!T Point struct { > x, y int > data !T > } > > type<!R,!S> Transformer interface { > Transform(!R) !S > } > > func<!T> Stringify(s []!T) string { > } > > type<!T> Vector []!T > > Easy and readable :)
Hmmm, I didn't realize that the declarations and uses were different in D. I think it is a good feature of the current design draft that we use the same sort of syntax at a declaration (func Stringify(type T)) as at a use (Stringify(int)). 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/CAOyqgcU9PWRG0b9J9cDBRncv5qF93_5bVeY8jik1vwPFK%3DHa3w%40mail.gmail.com.