Hacker News new | past | comments | ask | show | jobs | submit login

True, but like I said that doesn't make it not silly. Just harder to fix.

Edit: Also, overriding a class method dynamically inside a function? I usually program python these days and even I think that's wild.




Its an interface with only method. I suspect that most of us would just us a lambda now.


I'll never quite understand why it wasn't simply a function in the first place.


Java pre-8 only had anonymous classes, there were no lambdas


And Java lambdas are still syntax sugar for one-method anonymous classes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: