Swift's syntax may look nice, but as soon as you run into "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" you'll forget all of that. Hint: they are related.
Swift's syntax may look nice, but as soon as you run into "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" you'll forget all of that. Hint: they are related.
It didn't have to be like that though... It hasn't always been this bad. Personally I think they've been ruining Swift since version 4.
It's particularly terrible in SwiftUI context nowadays but you can also make it chuck on something as simple as a .map(...)