Peter’s blog

This is supposed to be a blog about Objective C, Swift, Scala and Play framework (and also about pokemons).

Why Not Swift?

Apple’s Swift language since it’s release in September 2014 has already caused much controversy. In this post I will try to provide arguments for and AGAINST using Swift in your projects.

Arguments against

  • Swift cannot be mixed with C and C++ code - for each function/class you want to use in your Swift code you must create an Objective C wrapper and include it in the bridging header of your project.

Arguments for

  • Compared to Obj-C, syntax is cleaner and easier to read: myObj.doSomething(foo, anotherArg: bar) is shorter and much prettier than [myObj doSomethingWithArg:foo anotherArg:bar];

This list is far from complete and will be frequently updated.