Is there a way to declare an inline function in Swift?
Swift 1.2 will include the @inline attribute, with never and __always as parameters. For more info, see here. As stated before, you rarely need to declare a function explicitly as @inline(__always) because Swift is fairly smart as to when to inline a function. Not having a function inlined, however, can be necessary in some code. … Read more