News for hackers. Stuff that matters.
Re:Sum Types in Go by Jayschwa on Friday December 26, 2014 @02:00PM (#8799776)
I would not consider your example to be one of a "type alias". Alias usually means that the names can be used interchangeably without a difference in behavior (i.e. casting). Go actually has some built-in aliases where this is the case. "byte" is an alias for "uint8". They can be used interchangeably. Here is an example of the distinction: http://play.golang.org/p/ukYCBqFeW_

There are no comments on this comment yet.