Hacker News new | ask | show | jobs
by slavapestov 2621 days ago
Generic functions in Swift are compiled separately from their callers. Protocol requirements called on values of generic parameter type are dynamically dispatched via a witness table passed in under the hood for each generic requirement.