Swift 1.2 assigning let after initialization
问题 I'm trying to assign a value to a let in Swift 1.2 and its causing a compile error. On Apple's blog it says that this is now allowed The new rule is that a let constant must be initialized before use (like a var), and that it may only be initialized, not reassigned or mutated after initialization. So in my code i made a let a property in my class class SampleClass: NSObject { let idOfSomething:String public func createSomething(idString:String)-> Void { self.idOfSomething = idString } } After