<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">It's certainly an interesting compiler issue, probably to do with the type analysis</span></blockquote><div><br></div><div>I've for sure hit this before and now see with a little help to the compiler the compile time drops dramatically:</div><div>
<p class="gmail-p1">Float(abs(Double(0) - Double(0)))<br>
repl.swift:50:1: error: expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions<br>
<br>
Float(abs(Double(0 as Int) - Double(0 as Int)))<br>
// Compiles instantly!</p><p class="gmail-p1">It makes the code ugly though, so we're probably better-off busting it into subexpressions like the error above states.</p></div></div>