Swift struggles with arithmetic ?
Swift struggles with arithmetic ?
- Subject: Swift struggles with arithmetic ?
- From: Gavin Eadie <email@hidden>
- Date: Sat, 29 Aug 2015 16:05:33 -0400
Apologies if off-topic, but Swift appears a lot on cocoa-dev, so maybe it’s OK
I’ve been using Swift and moving some Obj-C code over to it, but I’m concerned that it thinks this is “too complex to be solved in reasonable time”:
import Foundation
let y = 1.0 * sin(1.0) + 1.0 * sin(1.0) + 1.0 * sin(1.0)
The above is simplified from the original (original didn’t have constants under the sin function). Swift 2.0 (Version 7.0 beta 6) reports a fatal error and suggests breaking down the expression which, of course, I can do but. I’ve not seen any reports of such behavior on this list or elsewhere; have you?
There’s a Radar report for this filed against Swift 1.2 (and updated for 2.0).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden