3 ms·
I wouldn't say reflection is being underused. It's just that the reflection is a powerful tool AND a necessary evil. https://blog.golang.org/laws-of-reflectio
by konart 6y ago
I wouldn't say reflection is being underused.
It's just that the reflection is a powerful tool AND a necessary evil.
https://blog.golang.org/laws-of-reflection https://blog.golang.org/laws-of-reflection
"Once you understand these laws reflection in Go becomes much easier to use, although it remains subtle. It's a powerful tool that should be used with care and avoided unless strictly necessary."