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

I hardly ever use external libraries so luckily don't have that problem, but I don't think it's a widespread issue :/ If you really want access to a private I'm sure you could work out a way.

>> "It can call any code any time it likes, but it shouldn't"

Sure but it's nice to have a lock on the door that says "I can say with 100% certainty that this code will not be called from anywhere else". That's a pretty useful feature to have.



That's only a nice feature until you pull out the Decorator or Adapter patterns to get around some class marked `final` in a library somewhere you can't modify and for which you have to appease the type system because classes do not imply interfaces.


Nice for you, but not nice for anyone else.




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

Search: