4 ms·
> Among hundreds of other things, getting the return type of a method and getting the input parameter names (+ types) in a way that doesn't revolve around liter
by orangeeater 8y ago
> Among hundreds of other things, getting the return type of a method and getting the input parameter names (+ types) in a way that doesn't revolve around literally parsing the functions toString() representation.
Ah, that's quite cool.
- orf 8y agoYou can do almost anything with Java reflection, JS really pales in comparison. Which in some ways is a good thing as you can do a lot more optimizations.