What’s the best practice for naming Swift files that add extensions to existing objects?
It’s possible to add extensions to existing Swift object types using extensions, as described in the language specification. As a result, it’s possible to create extensions such as: extension String { var utf8data:NSData { return self.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)! } } However, what’s the best naming practice for Swift source files containing such extensions? In the … Read more