[swift-users] expression too complex

Joe Groff jgroff at apple.com
Thu Jun 16 19:15:00 CDT 2016


> On Jun 16, 2016, at 1:59 PM, davelist at mac.com wrote:
> 
> 
> Joe, 
> 
> I had an expression that worked fine with Swift2.2 but Swift3 (Xcode 8 version) complains it's too complex:
> 
> The variables are of type CGPoint and the function returns a Bool.
> 
>    return (pt.x - p0.x) * (p1.y - p0.y) - (pt.y - p0.y) * (p1.x - p0.x) < 0.0

Thanks for letting us know. If you haven't yet, would you have time to file a bug report? cc'ing Joe Pamer in case he has any ideas here.

-Joe


More information about the swift-users mailing list