Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except that reflection-based tools work with methods but not functions.


Yes, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: