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

You can define a struct with a single field in Swift, which is guaranteed to have the same representation as the field's type (but yeah, you have to "forward" the desired subset of protocol conformances manually to the underlying type).


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

Search: