Hacker News new | ask | show | jobs
by lawgimenez 495 days ago
I have encountered the infamous

> The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

a lot. And it’s impossible to debug.

https://developer.apple.com/forums/thread/652691

1 comments

that just means you have too many items together. break them up into smaller components or use something like a Group and that solves it. not a big mystery
The mystery is not why it happens, but how compiler tech can go backwards and still win.

Ps. I do like SwiftUI, just not the implementation.

We all know it’s just the Swift compiler getting confused.

In my cases I encountered this error in different scenarios in offset modifier, Strings, Colors.