3 ms·
While anonymous functions should really only have reference equality, I still think the Java designers fucked up in extending this to method references. this::f
by ygra 10y ago
While anonymous functions should really only have reference equality, I still think the Java designers fucked up in extending this to method references. this::foo != this::foo, which is a bit painful for registering event listeners when you want to remove them later again. For those things you have to store the reference in a field.