Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sharpercoder
· 9y ago · 0 comments
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());
Comments
[–]
thechewanater
9y ago
No it's not, it's illegal to use _ as a lambda parameter.
[–]
ivan_gammel
9y ago
Exactly the case when you get warning in Java 8. Bad code written by lazy devs and now it's time for them to pay.