3 ms·
I've seen it popping up a lot lately. It's used as an identifier for lambda functions, indicating "i must use a variable identifier here, but I don't use it" s
by sharpercoder 10y ago
I've seen it popping up a lot lately. It's used as an identifier for lambda functions, indicating "i must use a variable identifier here, but I don't use it"
someObject.doSomething(_ -> isDerp());
- ivan_gammel 10y agoExactly the case when you get warning in Java 8. Bad code written by lazy devs and now it's time for them to pay.
- thechewanater 10y agoNo it's not, it's illegal to use _ as a lambda parameter.