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

> The best example of this (IMO) is how `AbstractMap` works in Java.

I think it is fair to say that this is idiomatic Java, and for that reason it is a great example within the context of Java.

But does it translate to the abstract? Given your hypothetical ideal language that allows you to do anything you can imagine as you can best imagine it, is this still a good example, or would you reach for something else (e.g. composition)? Why/why not?




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

Search: