2 ms·
Nice list. He clearly doesn't like reflection: > Clear is better than clever. > Reflection is never clear. Of course, everything has its place, even refle
by ktRolster 11y ago
Nice list. He clearly doesn't like reflection:
> Clear is better than clever.
> Reflection is never clear.
Of course, everything has its place, even reflection.
- lmm 11y agoReflection is a sign that your system is inadequate. In some (maybe even all) languages it may be necessary, but for a language designer it is a failure.
- voltagex_ 11y agoEh, I am using reflection in a small (C#) project at work - I've had to implement a unit test system of sorts (yes, NIH, reinventing the wheel etc etc) and reflection lets me find all methods that return a particular type very easily. I agree it can become spaghetti very quickly but it is quite useful at times.
- cyphar 11y agoThe funny thing being that the Golang stdlib uses reflection.