1. interface { a;b } is intersection. The "Intersection" between two sets 
means things which exist in both sets simultaneously.
2. interface { a|b } is union.  "Union" means a set of things which which 
exist in set A *or* set B.

Quoting from the spec:
*"the predeclared type *any* is an alias for the empty interface." *
*"interface{} // no specific types"*
*"For an interface with type elements, 𝑆 is the intersection of the 
specific types of its type elements."*

Can you see now?

>

-- 
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/2ee4f634-f91b-4bf2-bcb9-84e606c33ba9n%40googlegroups.com.

Reply via email to