Quick question...
Why do we need brackets to define a parametered function, struct etc...?
Why not change Go kinds to accept either a type (would produce a regular,
function, structs, etc) or a new type parameter object that would implement
the constraints (would produce a generic function definition)
for instance,
type parameter T
// [...] some way to add constraint to T
func Max(v T) T{...}
What are the brackets for? Just an idea.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f7f85bc8-667e-4d75-81e2-76bb70828fcbn%40googlegroups.com.