Swift creator joins Twitter

Published on: Jun 08, 2014

swift Apple

His new Twitter account @clattner_llvm is THE one to follow for insights into our new language. Here are couple of gems:

Jun 5: Fun fact for compiler folks: Swift has a new high-level language-specific optimizer and IR before LLVM, try xcrun swift t.swift -O -emit-sil

Jun 5: Of course Swift supports #! scripts, you can immediately execute a swift script with "xcrun swift -i".

Jun 6: Namespacing is implicit in swift, all classes (etc) are implicitly scoped by the module (Xcode target) they are in. no class prefixes needed

Jun 6: Safety and immutability are preferred, but Swift has UnsafePointer, malloc(), and mutability for the times you still need or want them