Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Exactly, this is what OP was trying to point out. With the record matching feature, you don't need the extra abstract base class anymore.

This is not to say that abstract base classes are never a good idea, but sometimes in Java they were only there for the convenience of one handler method, to prevent the use of instanceof. This didn't improve readability. That's when the record matching can be a good improvement.



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

Search: