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

Yeah, good point. Though it would be handy if you could at least within your own package add methods to types. But then I guess those methods would be uppercase but not exported, which would be weird.

You can certainly imagine schemes like specifying in the import which types to extend, but that seems complex enough that I'm not surprised a language as radically devoted to simplicity as Go left it out.



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

Search: