|
|
|
|
|
by fiedzia
3405 days ago
|
|
> In hindsight, I wonder if it would have been better to just have a clean break. Language-wise - sure, it adds a lot of complexity. Platform-wise, they would risk people staying on what they had and ignoring Swift entirely, and that would mean Apple would need to support objective-c a lot longer than they want to. |
|
But I wonder. They are a $700B company. What if they just 'did it right' - i.e. made sure all of the APIs and documentation were available in 'new Swift' which had no relation to ObjC.
Because the 'fallback on ObjC' has more problems than integration.
A lot of people want to make apps for iPhone and ObjC is not in their vocab. Me, for example.
Swift could have been an easy-to-approach language.
But because of 1) lack of docs and 2) dependency on a lot of ObjC residue ... guess what? To make app in 'Swift' - you still had better know a lot of ObjC!
So - to really make use of 'the new' - you still have to know 'the old' - which totally defeats the purpose!
I wish they had made a clean break - great docs, examples that are clear and well marked in terms of versions, all new APIs for Swift, left in beta for longer, and made mostly backwards compatible changes. And left a few things out.