[generics] function type declarations pushes parameters too far right

43 views
Skip to first unread message

Tobias Weingartner

unread,
Jun 18, 2020, 12:33:22 PM6/18/20
to golan...@googlegroups.com
Just a quick IMHO,

The current proposal, where there is a type declaration between the function name and the function arguments, pushes the function arguments too far right.  The function arguments, arguably, are more important (usually) than the specifics of the types required.

Is there an option to move these to something like:

```
typedef FuncName(T1, T2 Stringer)
func FuncName(a T1, b T2) (T1, error) {
  // ...
}
```

Note, INALL (I'm not a language lawyer)...

-Toby.
Reply all
Reply to author
Forward
0 new messages