> > It's certainly an interesting compiler issue, probably to do with the type > analysis
I've for sure hit this before and now see with a little help to the compiler the compile time drops dramatically: Float(abs(Double(0) - Double(0))) repl.swift:50:1: error: expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions Float(abs(Double(0 as Int) - Double(0 as Int))) // Compiles instantly! It makes the code ugly though, so we're probably better-off busting it into subexpressions like the error above states.
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users