I always assumed that there is no "private" in Go - it is either public or 
package level. So generic's being able to access same package level 
accessible things seems to be logical.

Andrey

On Thursday, October 18, 2018 at 10:21:15 AM UTC-6, Andy Balholm wrote:
>
> I don’t think that generic functions should have access to private fields 
> of their type parameters, regardless of what package they are in. 
>
> Andy 
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to