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

> For example, the same package can have a public interface for in-house consume that is wider than the official public interface for third parties.

Isn’t this similar to package private in Java or internal in C#?




Not really, because the interface is separate from the implementation and you can provide multiple interface packages for the same implementation package.

So client A sees mylib-public-A, client B sees mylib-public-B, but both link to the same mylib so to speak.


Ahhh, neat!


Yes, except that still limits you to two consumers.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: