After receiving help with a question yesterday I'm still not able to quite wrap my head around this, or why the following is allowed:
let string = NSString.hasPrefix("aString")
To me this looks like I'm simply calling a instance method straight from a Class. In the above example it doesn't particularly make sense, but it is obviously allowed as it both compiles without warnings and runs without any errors.
Any help to eradicate this particular part of my (vast) ignorance in regards to Swift would be highly appreciated.
Edit: Is this perhaps because there are nothing separating class and instance-methods in Swift and its a way to handle this discrepancy between Objective-C and Swift?