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

Mostly the former. The compiler infers the type of the implementation and ensures it conforms to the interface. But, you can further restrict the interface's type to hide details from the outside world.


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

Search: