All posts filed under “Compiler

comments 4

#36 ObjectiveC2Swift Review

Today we will dive deeper into a quite unusual topic for us – Objective-C. Don’t be scared though as what we have got for you is a review of Objective-C to Swift tool. Full disclaimer: we have recently received a full access to the tool from ObjectiveC2Swift Team! Thanks! Challenge Accepted! We all have some big and small legacy projects…

comment 1

#29 An alternative to if let and guard let

It’s brilliant when you can work with people smarter (or even a lot smarter) than you! You can learn so much from them. And then write about the things you’ve learned 🙃. if and guard let Have you ever been tired of repeating if let or guard let statements, to perform certain operations, that should be performed only if a…

#5 When compiler doesn’t know when a String is of String type

String initialised with a class Did you know that Swift 2.1 introduced new syntax for initialisation that works more or less like NSStringFromClass([Object class]) in Objective-C? From now on, you can initialise String in the following way: I dug the documentation and I found out that there is no initialiser that takes a class as an init argument. Because of…