Michal,

Without wishing to over-complicate your proposal, I think you should at 
least consider adding "gen int" to the mix.

The reason I say this is because the integer types support a lot more 
operators than the floating point and complex types do, namely:

1. The remainder operator (%).

2. The bitwise operators (&,|, ^, &^).

3. The shift operators (<<, >>).

4. String conversion (using string(x)).

Also integers are always ordered, whereas complex types are not, and are 
subject to overflow which is something floating point types never do, 

So having both 'num' and 'int' would give you better coverage of the 
available operators and often times you only want a generic function to 
operate on integer types anyway.

Alan


-- 
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/4ed89f89-ff3e-4e27-bee1-1b8b42608f62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to