On 08/02/2017 14:49, Claes Redestad wrote:
From a startup perspective all alternatives are more or less equal here, and generally speaking a lambda and a method reference are equalas long as they're both non-capturing. A detail I had missed here, though, is that the createModuleReader method could be made static to ensure the lambda is actually non-capturing (otherwise it'll unnecessarily allocate an object preserving this).
Yes, good point, this can of course be static. -Alan