3 ms·
The JVM had no support for functions as values (it was designed around the idea of only having objects with methods). So if you want to very closely mirror Java
by lmm 6y ago
The JVM had no support for functions as values (it was designed around the idea of only having objects with methods). So if you want to very closely mirror Java at runtime (e.g. you want Java reflection libraries to work with your language) but you want to use functions as values, you have to bridge that gap with classes whose instances will represent functions.