by twic · 7y ago · 0 comments
I may have misunderstood what is planned for Swift though.
Incidentally, this in principle allows the optimiser to specialise the caller to the return type of this function, avoiding the existential altogether.
My reading was:
`some` -> Some specific type with these constraints which will be known at compile time
`any` -> Any value conforming to these constraints which may vary at runtime