3 ms·
Except that reflection-based tools work with methods but not functions.
by erik_seaberg 5y ago
Except that reflection-based tools work with methods but not functions.
- crtc 5y agoYes, but reflection is part of the problem: "And even that traversal is not sufficient in the general case when type reflection gets involved, as reflection might look up methods based on strings input by the user. So in general instantiating parameterized methods in the linker might require instantiating every parameterized method for every possible type argument, which seems untenable." So methods with type parameters would a) not be usable with interfaces and b) not be usable with reflection.