2 ms·
I really like Swift, the strong static typing, imutability options, and even generics but there are some features of Obj-C that are lost. Objective C is a very
by josephlord 12y ago
I really like Swift, the strong static typing, imutability options, and even generics but there are some features of Obj-C that are lost. Objective C is a very flexible dynamic language with opportunities for runtime twizzling, object introspection. It is really like a lower level Ruby and if you use it a certain way is basically duck typed (you can send any message to any object). Swift is much more a static language and only really enables introspection and downcasting if you enable the Objective C compatibility for a class. This makes some things harder at least to do the same way as Objective-C (JSON parsing with NSJSONSerialization isn't pretty).
As mentioned I prefer Swift but I do acknowledge that there are some losses that others may feel more keenly.