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

Only access control I wish Swift had is typeprivate so I could hide private things but make them available for subclasses (or perhaps protocol conformers). Unfortunately Apple has only added a package level so far, which seems fairly useless (you're either too big for it to be useful or too small to need it). Obj-C didn't really have ACLs at all, you just hid stuff in interfaces. Once found, those interfaces were no protection at all.


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

Search: