miniblog.
← Back to all posts
Wilfred Hughes
Jan 15, 2017 at 23:32
Exponential time complexity in the Swift type checker
https://www.cocoawithlove.com/blog/2016/07/12/type-checker-issues.html
(nifty deep dive into the constraint solver inside)
Exponential time complexity in the Swift type checker
One of the most annoying problems in Swift is when the compiler gives an 'Expression was too complex to be solved in a reasonable time' error. I look at why this error occurs, how to avoid it and talk about how this should be solved in a future compiler update.