4 ms·
> Meanwhile long-standing proposals like properly fixing generics ("Generics Manifesto") are being pushed back indefinitely Which parts of the generics manifes
by slavapestov 6y ago
> Meanwhile long-standing proposals like properly fixing generics ("Generics Manifesto") are being pushed back indefinitely
Which parts of the generics manifesto are "properly fixing generics" in your opinion?
- Tainnor 6y agoAt the very least extensions of structural types, which I believe requires also variadic generics. Tuples are completely broken in Swift due to the fact that they're not Equatable - you can compare single tuples, since == is implemented for them, but you can't compare arrays of tuples. This makes some kinds of tests incredibly awkward to write and had lead my team to move away from tuples to nominal types a number of times. Also, there are some annoying restrictions around existentials, and documentation of Generics and other advanced type machinery could be a lot better in general.