I’m trying to get a better understanding of how the Go runtime works.
Discription

I’ve been looking at the implementation of reflect.Value and have found that it’s possible to create an instance with a nil pointer, which leads me to believe that there is no way for the runtime to know if a value is actually valid or not until it’s used in some way (e.g., passed into a function).

I understand this makes sense from an efficiency standpoint, but I was wondering if anyone could explain why this design decision was made
https://t.co/3Tk4MD7ER1

Back to Main

Subscribe for the latest news: