Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slavapestov
on Oct 10, 2022
|
parent
|
context
|
favorite
| on:
Zig-style generics are not well-suited for most la...
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: