Re:Why is .NET reflection slow?
by eropple on Friday December 16, 2016 @07:07PM
(#13198071)
Alternatively, you build a type system that can express what developers actually need it to express and solve the problem without reflection at all. =)
[ Parent
| on HN ]
That's easier said than done. There are tradeoffs on expressive type systems too. That being said I wouldn't mind more expressivity in the Go type system. I'm actually looking to implement my own small features(i.e optionals, variant types) in a Go superset.
Where do you think struct tags fit in all this ? do you really think go designers took the time to consider the tradeoffs of such feature ? I don't think so.
Any sufficiently advanced type system is indistinguishable from magic.