On Wed, May 28, 2014 at 12:40 PM, Matthew Holt <
matthe...@gmail.com> wrote:
> I've been reading about some discussion on whether type assertions or type
> switches are reflection in Go.
type assertions in Go are as much 'reflection' as 'instanceof' is in Java.
Generally 'reflection' is anything that allows a running process to
ask questions about the program it's running.
But, mostly when people talk about reflection specifically they are
referring to the cost.
The reflect package can be quite expensive to call. type assertions
are very cheap in comparison.