flâneur — a map of the web's best reading

The Laws of Reflection - The Go Programming Language

go.dev · 2,903 words · saved by 1 readers

How reflections works in Go, how to think about it, and how to use it.

The Laws of Reflection - The Go Programming Language The Go Blog The Laws of Reflection Rob Pike 6 September 2011 Introduction Reflection in computing is the ability of a program to examine its own structure, particularly through types; it's a form of metaprogramming. It's also a great source of confusion. In this article we attempt to clarify things by explaining how reflection works in Go. Each language's reflection model is different (and many languages don't support it at all), but this article is about Go, so for the rest of this article the word "reflection" should be taken to mean "refl

Explore this link on the map →

saved by

related reading