There is no type hierarchy and there are no subtypes. Interfaces do not describe type relationships. The conversion required between `[]int` and `[]interface{}` further demonstrates the significance of this distinction.
As for losing type safety when writing generic containers, this is true, and another reason why people don't do this.
Comments
There is no type hierarchy and there are no subtypes. Interfaces do not describe type relationships. The conversion required between `[]int` and `[]interface{}` further demonstrates the significance of this distinction.
As for losing type safety when writing generic containers, this is true, and another reason why people don't do this.